(1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$BcExfrHiNhKgAwrNGDenEeq8dqBVJiZwBm55X6.HH6bV4yhPjYtR2"], ["created_at", "2018-12-04 02:50:44.994214"], ["updated_at", "2018-12-04 02:50:44.994214"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2430"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "u2tBnt1UPcRi3BcvStKmrw"], ["updated_at", "2018-12-04 02:50:45.016440"], ["id", 2430]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 02:50:45.020853"], ["reset_sent_at", "2018-12-04 02:50:45.020041"], ["id", 2430]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.8ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)

UserMailer#password_reset: processed outbound mail in 352.1ms Sent mail to teste@unb.com.br (11.8ms) Date: Tue, 04 Dec 2018 00:50:45 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05eb855d7ac_20d6772f181454e@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05eb855b884_20d6772f1814451";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05eb855b884_20d6772f1814451 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/u2tBnt1UPcRi3BcvStKmrw/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05eb855b884_20d6772f1814451 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
       Email styles need to be inline   
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/u2tBnt1UPcRi3BcvStKmrw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05eb855b884_20d6772f1814451–

Redirected to test.host/login Completed 302 Found in 381ms (ActiveRecord: 3.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$NuCl2j4Daco8mVcGnmcDcuEWxQoMfLtay5vMoITFM8jhJGQiBx3lm"], ["created_at", "2018-12-04 02:50:45.420761"], ["updated_at", "2018-12-04 02:50:45.420761"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.7ms

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$738/kbOMNQuahyk0stFBYuPvsTBflUxzJSIoKscN2NgrA0hVUwDRm"], ["created_at", "2018-12-04 02:50:45.440368"], ["updated_at", "2018-12-04 02:50:45.440368"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2432"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$YsvBQVOsJdGFlGNXRos0V.oH18mBjxDoUzcPzfkd4./hYY7y2Bhyq"], ["updated_at", "2018-12-04 02:50:45.449950"], ["id", 2432]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 1.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$qL9ce90rftXiW4LSv0Sj4O7OommcjIUZAv/mJVkkF8Ml/La1dvei."], ["created_at", "2018-12-04 02:50:45.461820"], ["updated_at", "2018-12-04 02:50:45.461820"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2433"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$XGpRdqBMn8scJ3h.bIARJOQTY6TEV4bwBwyKE9vbWIVcl08PHbZhW"], ["created_at", "2018-12-04 02:50:45.489393"], ["updated_at", "2018-12-04 02:50:45.489393"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2434"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 20ms (Views: 2.2ms | ActiveRecord: 1.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$fCX6z8SU23IiZOUwe3J/Iu.xs9zBsNs5xZ3uS.LYckFogSQNFHMDS"], ["created_at", "2018-12-04 02:50:45.522500"], ["updated_at", "2018-12-04 02:50:45.522500"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2435"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$RO22C0Z34nNTGFEs46z6N.S1twDDz8k82DSYLWuU77osNeknC4WEi"], ["created_at", "2018-12-04 02:50:45.543435"], ["updated_at", "2018-12-04 02:50:45.543435"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2436"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$niziETxV9PWllDtPAu4py.SSgF3W9M/MSuFliBaVrsk5JaE1hpZHm"], ["created_at", "2018-12-04 02:50:45.580920"], ["updated_at", "2018-12-04 02:50:45.580920"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.3ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Y3OgWLe0GFOhU469JN8NQexIkd9jGI2/LGvfqGsRaTbZYVXZzT.x2"], ["created_at", "2018-12-04 02:50:45.596450"], ["updated_at", "2018-12-04 02:50:45.596450"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (27.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gS13GcPegXOpPhEqcboi6OyvTw.FJ7v7.RHrsQMLJyW6uVU6bkDWa"], ["created_at", "2018-12-04 02:50:45.689285"], ["updated_at", "2018-12-04 02:50:45.689285"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:45.722005"], ["updated_at", "2018-12-04 02:50:45.722005"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:50:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:45.737703"], ["last_sign_in_at", "2018-12-04 02:50:45.737703"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:45.738933"], ["id", 2439]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2149"}
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2149], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2439], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2439], ["room_id", 2149], ["created_at", "2018-12-04 02:50:45.773573"], ["updated_at", "2018-12-04 02:50:45.773573"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 23ms (ActiveRecord: 3.3ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2149], ["LIMIT", 1]]
 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tysywNZZBoCTeeTteocS.edfN0ba945MzlEijC8KKGeNqfve3sd/."], ["created_at", "2018-12-04 02:50:45.790334"], ["updated_at", "2018-12-04 02:50:45.790334"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:45.794635"], ["updated_at", "2018-12-04 02:50:45.794635"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:50:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:45.800036"], ["last_sign_in_at", "2018-12-04 02:50:45.800036"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:45.801134"], ["id", 2440]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2150"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2150], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2440], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2440], ["room_id", 2150], ["created_at", "2018-12-04 02:50:45.813698"], ["updated_at", "2018-12-04 02:50:45.813698"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.1ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$odP2F.eIHSZpftxgzqJFyuGICzzJB/EFBPCHgoHeXXP.bE5ksMAHu"], ["created_at", "2018-12-04 02:50:45.827163"], ["updated_at", "2018-12-04 02:50:45.827163"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:45.831669"], ["updated_at", "2018-12-04 02:50:45.831669"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:50:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:45.837071"], ["last_sign_in_at", "2018-12-04 02:50:45.837071"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:45.838109"], ["id", 2441]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2151", "user_id"=>"2441"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2151], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2441], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2441], ["room_id", 2151], ["created_at", "2018-12-04 02:50:45.849969"], ["updated_at", "2018-12-04 02:50:45.849969"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:50:45 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2151", "user_id"=>"2441"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2441], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2151], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2441], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2441], ["room_id", 2151], ["created_at", "2018-12-04 02:50:45.867372"], ["updated_at", "2018-12-04 02:50:45.867372"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 4.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Lf/rEVv.6XVGpAJ1dnQesugf0Bmh/7m7SoEo6Vdj7mPj79L8uytR."], ["created_at", "2018-12-04 02:50:45.880337"], ["updated_at", "2018-12-04 02:50:45.880337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:45.884731"], ["updated_at", "2018-12-04 02:50:45.884731"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:50:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:45.890412"], ["last_sign_in_at", "2018-12-04 02:50:45.890412"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:45.891603"], ["id", 2442]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2152", "user_id"=>"2442"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2152], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2442], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2442], ["room_id", 2152], ["created_at", "2018-12-04 02:50:45.903715"], ["updated_at", "2018-12-04 02:50:45.903715"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:50:45 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2152", "user_id"=>"2442"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2442], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2152], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2442], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2442], ["room_id", 2152], ["created_at", "2018-12-04 02:50:45.920531"], ["updated_at", "2018-12-04 02:50:45.920531"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.7ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2152], ["user_id", 2442], ["status", 2], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jSyVL4CH8NqizclKQZ49N.uX0R0U6p30JwkYizD40Tz.q5wOejLY."], ["created_at", "2018-12-04 02:50:45.938893"], ["updated_at", "2018-12-04 02:50:45.938893"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:45.943752"], ["updated_at", "2018-12-04 02:50:45.943752"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:50:45 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:45.949254"], ["last_sign_in_at", "2018-12-04 02:50:45.949254"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:45.950377"], ["id", 2443]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2153", "user_id"=>"2443"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2153], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2443], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2443], ["room_id", 2153], ["created_at", "2018-12-04 02:50:45.961934"], ["updated_at", "2018-12-04 02:50:45.961934"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:50:45 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2153", "user_id"=>"2443"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2443], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2153], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2443], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2443], ["room_id", 2153], ["created_at", "2018-12-04 02:50:45.978391"], ["updated_at", "2018-12-04 02:50:45.978391"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.6ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2153], ["user_id", 2443], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wVR0PyKQWEfJMf0btJfYn.ggE9kmBVQ3a7NGptnegoN2T2erUlRDW"], ["created_at", "2018-12-04 02:50:45.993037"], ["updated_at", "2018-12-04 02:50:45.993037"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:45.997596"], ["updated_at", "2018-12-04 02:50:45.997596"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:50:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:46.002906"], ["last_sign_in_at", "2018-12-04 02:50:46.002906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:46.004183"], ["id", 2444]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2154"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2154], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$r8vY13V.2/70f0LfxAVp1.rSb4a2mbEMc9iSUAs0tpPR22N0biDDi"], ["created_at", "2018-12-04 02:50:46.025576"], ["updated_at", "2018-12-04 02:50:46.025576"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:46.030105"], ["updated_at", "2018-12-04 02:50:46.030105"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:50:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:46.035068"], ["last_sign_in_at", "2018-12-04 02:50:46.035068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:46.036115"], ["id", 2445]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2155"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jjigZP6bZJ7QqkdRsqGc4O.fg.eMvDBm.Ticbdu2yP3oyz0KiiP.e"], ["created_at", "2018-12-04 02:50:46.052875"], ["updated_at", "2018-12-04 02:50:46.052875"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:46.057406"], ["updated_at", "2018-12-04 02:50:46.057406"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2156], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2446], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2446], ["room_id", 2156], ["created_at", "2018-12-04 02:50:46.065384"], ["updated_at", "2018-12-04 02:50:46.065384"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2156” for 127.0.0.1 at 2018-12-04 00:50:46 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:46.069660"], ["last_sign_in_at", "2018-12-04 02:50:46.069660"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:46.070646"], ["id", 2446]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2156"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2156], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2156')
Rendered appointments/show.html.erb within layouts/application (13.8ms)
Rendered layouts/_header-user.html.erb (4.6ms)

Completed 200 OK in 12968ms (Views: 12963.6ms | ActiveRecord: 1.4ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$BIwDSGZdiyTfm1IOQVnZUeDEpeBetx0Bnd6TLWT2XztEFO8aHIqPC"], ["created_at", "2018-12-04 02:50:59.057150"], ["updated_at", "2018-12-04 02:50:59.057150"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.063286"], ["updated_at", "2018-12-04 02:50:59.063286"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2157], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2447], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2447], ["room_id", 2157], ["created_at", "2018-12-04 02:50:59.074112"], ["updated_at", "2018-12-04 02:50:59.074112"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2303/edit” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.079849"], ["last_sign_in_at", "2018-12-04 02:50:59.079849"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.081147"], ["id", 2447]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2303"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2303], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TSqTW725hDehsg6ja/2T3eJARPoq6cY4d3whU4ToFc.22QlZEu5eq"], ["created_at", "2018-12-04 02:50:59.112051"], ["updated_at", "2018-12-04 02:50:59.112051"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.116927"], ["last_sign_in_at", "2018-12-04 02:50:59.116927"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.118032"], ["id", 2448]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YNItoaobcRAqxq/bbmj7luyVPa8nunkqFd02f8xE1CAMTqqCRI/J."], ["created_at", "2018-12-04 02:50:59.145128"], ["updated_at", "2018-12-04 02:50:59.145128"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.149805"], ["updated_at", "2018-12-04 02:50:59.149805"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2158], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2449], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2449], ["room_id", 2158], ["created_at", "2018-12-04 02:50:59.158173"], ["updated_at", "2018-12-04 02:50:59.158173"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2158], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2449], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2449], ["room_id", 2158], ["created_at", "2018-12-04 02:50:59.165947"], ["updated_at", "2018-12-04 02:50:59.165947"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.170033"], ["last_sign_in_at", "2018-12-04 02:50:59.170033"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.171000"], ["id", 2449]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2449]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 19ms (Views: 9.7ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ocg4D/fNMbWK8B19xJ8eQuDSvnjH3UK6l0D8tdjVKiBU8Hq7g43WK"], ["created_at", "2018-12-04 02:50:59.204681"], ["updated_at", "2018-12-04 02:50:59.204681"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.209344"], ["updated_at", "2018-12-04 02:50:59.209344"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2159], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2450], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2450], ["room_id", 2159], ["created_at", "2018-12-04 02:50:59.218161"], ["updated_at", "2018-12-04 02:50:59.218161"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2159], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2450], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2450], ["room_id", 2159], ["created_at", "2018-12-04 02:50:59.226866"], ["updated_at", "2018-12-04 02:50:59.226866"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.231133"], ["last_sign_in_at", "2018-12-04 02:50:59.231133"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.232156"], ["id", 2450]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2450]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Q2Wd0LVkAiCsAYrSTwCn7eWg5QJPvqcWMh1petuENM9YA3o4GkWta"], ["created_at", "2018-12-04 02:50:59.256701"], ["updated_at", "2018-12-04 02:50:59.256701"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.263162"], ["updated_at", "2018-12-04 02:50:59.263162"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2160], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2451], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2451], ["room_id", 2160], ["created_at", "2018-12-04 02:50:59.272865"], ["updated_at", "2018-12-04 02:50:59.272865"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2308” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.277268"], ["last_sign_in_at", "2018-12-04 02:50:59.277268"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.278367"], ["id", 2451]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2308"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2308], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2308]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.9ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qplsrl.3wQSIO2v7K75FROdvGnRylVG0LYwwO4n78xBt6L/DmIHl2"], ["created_at", "2018-12-04 02:50:59.302144"], ["updated_at", "2018-12-04 02:50:59.302144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.307220"], ["updated_at", "2018-12-04 02:50:59.307220"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JDElamEImqhpv/P/sl5Feu.GM7KajxqeyWc1Jx3lFqksvYv77E8WO"], ["created_at", "2018-12-04 02:50:59.315047"], ["updated_at", "2018-12-04 02:50:59.315047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2161], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2453], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2453], ["room_id", 2161], ["created_at", "2018-12-04 02:50:59.323626"], ["updated_at", "2018-12-04 02:50:59.323626"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2309” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.328818"], ["last_sign_in_at", "2018-12-04 02:50:59.328818"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.329835"], ["id", 2452]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2309"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2309], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2161], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2453], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.7ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6ae0Cz47iVPUFnmuIUMzUeR/21la.md9qu7o2g6eMO7mZ3rvE/316"], ["created_at", "2018-12-04 02:50:59.354487"], ["updated_at", "2018-12-04 02:50:59.354487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.358887"], ["updated_at", "2018-12-04 02:50:59.358887"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yQvSuXw8xpsm1tukWRCW6uKDp0hk8P92hVlJV6U3TWVMAyTY2bRFW"], ["created_at", "2018-12-04 02:50:59.366009"], ["updated_at", "2018-12-04 02:50:59.366009"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2162], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2455], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2455], ["room_id", 2162], ["created_at", "2018-12-04 02:50:59.373808"], ["updated_at", "2018-12-04 02:50:59.373808"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2310” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.378722"], ["last_sign_in_at", "2018-12-04 02:50:59.378722"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.379794"], ["id", 2454]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2310"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2310], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2162], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2455], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Oupq.V2/LT19gu6Ghb/FXONuCwHHyeUCwXTeebSOz4A487ZyfgCSe"], ["created_at", "2018-12-04 02:50:59.401172"], ["updated_at", "2018-12-04 02:50:59.401172"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.404867"], ["updated_at", "2018-12-04 02:50:59.404867"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$BvOUM97xzgwd2t4ALcWoduf8iV/K6CtUhrnh4HGyJ90SmUfjnnHpu"], ["created_at", "2018-12-04 02:50:59.412102"], ["updated_at", "2018-12-04 02:50:59.412102"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2163], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2457], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2457], ["room_id", 2163], ["created_at", "2018-12-04 02:50:59.419907"], ["updated_at", "2018-12-04 02:50:59.419907"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2311” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.425065"], ["last_sign_in_at", "2018-12-04 02:50:59.425065"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.426075"], ["id", 2456]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2311"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2311], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2163], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2457], ["LIMIT", 1]]
SQL (0.8ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-04 02:50:59.437279"], ["id", 2311]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 10ms (ActiveRecord: 2.3ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VU9h/kISw9er2MZ7r7zgIOs8gd5T2V82j4oeRvULQ3i1oyHxS.9be"], ["created_at", "2018-12-04 02:50:59.451268"], ["updated_at", "2018-12-04 02:50:59.451268"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.455691"], ["updated_at", "2018-12-04 02:50:59.455691"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KDB5YNwCE5tpPtlKq.Ap.u.46W3XyWlkGX0okPql4zkVNeSnLsWnK"], ["created_at", "2018-12-04 02:50:59.463228"], ["updated_at", "2018-12-04 02:50:59.463228"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2164], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2459], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2459], ["room_id", 2164], ["created_at", "2018-12-04 02:50:59.471322"], ["updated_at", "2018-12-04 02:50:59.471322"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 02:50:59.475062"], ["id", 2312]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2164], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2459], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2459], ["room_id", 2164], ["created_at", "2018-12-04 02:50:59.482057"], ["updated_at", "2018-12-04 02:50:59.482057"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 02:50:59.485584"], ["id", 2313]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.489385"], ["last_sign_in_at", "2018-12-04 02:50:59.489385"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.490270"], ["id", 2458]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2459], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2164], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2459], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2164], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.3ms)
Rendered layouts/_header-admin.html.erb (3.0ms)

Completed 200 OK in 18ms (Views: 14.0ms | ActiveRecord: 1.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CqAQulgR1zYXa7O/QmxNhepM/6h2D8rEGK/u2wnv.11TMfeZSn3.O"], ["created_at", "2018-12-04 02:50:59.522150"], ["updated_at", "2018-12-04 02:50:59.522150"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.526264"], ["updated_at", "2018-12-04 02:50:59.526264"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rZDr0dIy96oHTWXEMtMxOO7KymFXcawEakpwZt7wGeelW/YKX.y/W"], ["created_at", "2018-12-04 02:50:59.533668"], ["updated_at", "2018-12-04 02:50:59.533668"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2165], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2461], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2461], ["room_id", 2165], ["created_at", "2018-12-04 02:50:59.541502"], ["updated_at", "2018-12-04 02:50:59.541502"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 02:50:59.545565"], ["id", 2314]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2165], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2461], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2461], ["room_id", 2165], ["created_at", "2018-12-04 02:50:59.552900"], ["updated_at", "2018-12-04 02:50:59.552900"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 02:50:59.556644"], ["id", 2315]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.560422"], ["last_sign_in_at", "2018-12-04 02:50:59.560422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.561344"], ["id", 2460]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2461], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2165], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2461], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2165], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.4ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 15ms (Views: 11.1ms | ActiveRecord: 1.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P06Jj2kUaUjgyvv2jYOIhuI/94dzsFYYnrovnd5f9O6zb3XPm/uCS"], ["created_at", "2018-12-04 02:50:59.591560"], ["updated_at", "2018-12-04 02:50:59.591560"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.595658"], ["last_sign_in_at", "2018-12-04 02:50:59.595658"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.596660"], ["id", 2462]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (6.5ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1xQq2BjYJIO3TYNyl2gpSeSuyw.CHIXpvwFTXZTrcRvh9zYMs0WtO"], ["created_at", "2018-12-04 02:50:59.627248"], ["updated_at", "2018-12-04 02:50:59.627248"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.631467"], ["last_sign_in_at", "2018-12-04 02:50:59.631467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.632401"], ["id", 2463]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OJ5touS75996vL4uBWHGfOAkwuZOfpC2RiP8EtTbXnb7k.lMD2/Am"], ["created_at", "2018-12-04 02:50:59.647014"], ["updated_at", "2018-12-04 02:50:59.647014"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.651239"], ["last_sign_in_at", "2018-12-04 02:50:59.651239"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.652093"], ["id", 2464]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yBga2Ei3HdujKoIjtDmvX.PyQrmHfxIEQ3eScS953OGvBWkDRUkRa"], ["created_at", "2018-12-04 02:50:59.674826"], ["updated_at", "2018-12-04 02:50:59.674826"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.678870"], ["last_sign_in_at", "2018-12-04 02:50:59.678870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.679812"], ["id", 2465]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 00:50:59 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1SE10V3.vhtgn.aLknPYV.XLahdTq5pvNPLAa7/7u.8MjWVUpMx1a"], ["created_at", "2018-12-04 02:50:59.710269"], ["updated_at", "2018-12-04 02:50:59.710269"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.714182"], ["updated_at", "2018-12-04 02:50:59.714182"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2166” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.717733"], ["last_sign_in_at", "2018-12-04 02:50:59.717733"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.718609"], ["id", 2466]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2166"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2166], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6iNqEDmCO8FiVmCBjrdAke0VOuXkOsysEb7oCQiaa2py18zuFUTpa"], ["created_at", "2018-12-04 02:50:59.739615"], ["updated_at", "2018-12-04 02:50:59.739615"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.743839"], ["updated_at", "2018-12-04 02:50:59.743839"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2167” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.747781"], ["last_sign_in_at", "2018-12-04 02:50:59.747781"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.748688"], ["id", 2467]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2167"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2167], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.765458"], ["updated_at", "2018-12-04 02:50:59.765458"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2168” for 127.0.0.1 at 2018-12-04 00:50:59 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2168"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jWHpmLcP7ZiJWK5y67RgyOBg0D7He9Daly/.qVUoU/OY18Q59uodW"], ["created_at", "2018-12-04 02:50:59.780465"], ["updated_at", "2018-12-04 02:50:59.780465"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.784783"], ["updated_at", "2018-12-04 02:50:59.784783"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2169” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.788870"], ["last_sign_in_at", "2018-12-04 02:50:59.788870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.789874"], ["id", 2468]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2169"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.810236"], ["updated_at", "2018-12-04 02:50:59.810236"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2170” for 127.0.0.1 at 2018-12-04 00:50:59 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2170"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xb4BKntpqNgZhRhj7L7rNeRc8UpyxW9GiSpJi4ALUtCY2BvBIiEz2"], ["created_at", "2018-12-04 02:50:59.835272"], ["updated_at", "2018-12-04 02:50:59.835272"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.839447"], ["updated_at", "2018-12-04 02:50:59.839447"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2171/edit” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.844100"], ["last_sign_in_at", "2018-12-04 02:50:59.844100"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.845389"], ["id", 2469]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2171"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2171], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.3ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UHPgT3b1wsIspVulAaIj5./MFfJA1r.83NUnTo15AxQRrsFxF32UK"], ["created_at", "2018-12-04 02:50:59.872640"], ["updated_at", "2018-12-04 02:50:59.872640"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.876706"], ["updated_at", "2018-12-04 02:50:59.876706"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2172/edit” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.880393"], ["last_sign_in_at", "2018-12-04 02:50:59.880393"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.881380"], ["id", 2470]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2172"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2172], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.900862"], ["updated_at", "2018-12-04 02:50:59.900862"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2173” for 127.0.0.1 at 2018-12-04 00:50:59 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2173"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Xj8uo9JCAavQKgYCcEPVWeaawfg9rkBsbwMo.kQ55GsOvrm76EpoS"], ["created_at", "2018-12-04 02:50:59.916373"], ["updated_at", "2018-12-04 02:50:59.916373"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.921920"], ["last_sign_in_at", "2018-12-04 02:50:59.921920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.922946"], ["id", 2471]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.929648"], ["updated_at", "2018-12-04 02:50:59.929648"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uauvBeq6zZeXHdLFyG1tw.yC3VTks3b3oJWQjb70zKrtoaObHGsCa"], ["created_at", "2018-12-04 02:50:59.947650"], ["updated_at", "2018-12-04 02:50:59.947650"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.955097"], ["last_sign_in_at", "2018-12-04 02:50:59.955097"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.956332"], ["id", 2472]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:50:59.963674"], ["updated_at", "2018-12-04 02:50:59.963674"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wF0.BeT5WAeebT7EKgXarO4I9qfGO3MtCxF2VkydY0jTOsMmYUqM."], ["created_at", "2018-12-04 02:50:59.976132"], ["updated_at", "2018-12-04 02:50:59.976132"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:50:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:50:59.981614"], ["last_sign_in_at", "2018-12-04 02:50:59.981614"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:50:59.982556"], ["id", 2473]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GunnSJwu3iSgJ5mw4u30QucZpZzPmI39W..3w9CMFsi1mOT5YuiT."], ["created_at", "2018-12-04 02:51:00.001013"], ["updated_at", "2018-12-04 02:51:00.001013"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.006416"], ["last_sign_in_at", "2018-12-04 02:51:00.006416"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.007416"], ["id", 2474]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/wU.1UQSja.G6JFTsjYtuu5I8DoLT6qGa43UlAVTURpg6KcCCblDe"], ["created_at", "2018-12-04 02:51:00.025466"], ["updated_at", "2018-12-04 02:51:00.025466"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.030674"], ["last_sign_in_at", "2018-12-04 02:51:00.030674"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.031668"], ["id", 2475]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$k9qw73aUg/M2GPn9CW9G2.kYfJYtUOccX3EYDKPsV4MODFcrKdZta"], ["created_at", "2018-12-04 02:51:00.046649"], ["updated_at", "2018-12-04 02:51:00.046649"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.050712"], ["updated_at", "2018-12-04 02:51:00.050712"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2176” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.055226"], ["last_sign_in_at", "2018-12-04 02:51:00.055226"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.056237"], ["id", 2476]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2176"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2176], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 02:51:00.063979"], ["id", 2176]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2176 Completed 302 Found in 7ms (ActiveRecord: 1.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zbOTi50BbbqNt7igexCsBOQX75GajkS8D8rY06/6lAZ9YpDZF2rCu"], ["created_at", "2018-12-04 02:51:00.078253"], ["updated_at", "2018-12-04 02:51:00.078253"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.082538"], ["updated_at", "2018-12-04 02:51:00.082538"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2177” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.087284"], ["last_sign_in_at", "2018-12-04 02:51:00.087284"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.088274"], ["id", 2477]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2177"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2177], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 02:51:00.095861"], ["id", 2177]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2177 Completed 302 Found in 7ms (ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BAqkCUPdOXJIo3ULhwVoRu3XEn2HgNs8.W8lftu/h/a5XMzgTH.bK"], ["created_at", "2018-12-04 02:51:00.108916"], ["updated_at", "2018-12-04 02:51:00.108916"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.112984"], ["updated_at", "2018-12-04 02:51:00.112984"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2178” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.117726"], ["last_sign_in_at", "2018-12-04 02:51:00.117726"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.119032"], ["id", 2478]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2178"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2178], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 15ms (Views: 8.6ms | ActiveRecord: 1.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yxfPV9hdP9tUEutn1jIhrOn7gqCk9o555S1axGH96PNXIr2Rfo5Fe"], ["created_at", "2018-12-04 02:51:00.151972"], ["updated_at", "2018-12-04 02:51:00.151972"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.156572"], ["updated_at", "2018-12-04 02:51:00.156572"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2179” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.161371"], ["last_sign_in_at", "2018-12-04 02:51:00.161371"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.162496"], ["id", 2479]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2179"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2179], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hmpZiN4SSbEUQmiy.pSEDe3.dx5THxNaEnTCzsucVW/F0KlqwSA/O"], ["created_at", "2018-12-04 02:51:00.190064"], ["updated_at", "2018-12-04 02:51:00.190064"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.195174"], ["last_sign_in_at", "2018-12-04 02:51:00.195174"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.196240"], ["id", 2480]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Lx/8FRiIoUfg25qSVJsBYu8Rs2cOEaQN5.X0Uj16kriWfb3sSFzye"], ["created_at", "2018-12-04 02:51:00.210784"], ["updated_at", "2018-12-04 02:51:00.210784"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.214578"], ["updated_at", "2018-12-04 02:51:00.214578"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2180” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.218317"], ["last_sign_in_at", "2018-12-04 02:51:00.218317"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.219277"], ["id", 2481]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2180"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2180], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2180]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yzXY6tWdsXZTYmvXl5FgceVwakReVfcdwf3j/T9AAOPOsA/DA3e4S"], ["created_at", "2018-12-04 02:51:00.238381"], ["updated_at", "2018-12-04 02:51:00.238381"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.242719"], ["updated_at", "2018-12-04 02:51:00.242719"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2181” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.246464"], ["last_sign_in_at", "2018-12-04 02:51:00.246464"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.247430"], ["id", 2482]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2181"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2181], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2181]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bz9lWNGloVJ7T2FKz5R7IOoQBVIA5qv6x.fq7CThwkjDjW1VOqa22"], ["created_at", "2018-12-04 02:51:00.266541"], ["updated_at", "2018-12-04 02:51:00.266541"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.272348"], ["updated_at", "2018-12-04 02:51:00.272348"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2182” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.276695"], ["last_sign_in_at", "2018-12-04 02:51:00.276695"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.277836"], ["id", 2483]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2182"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gcY88Jjx..OR9w4l0HnDHOdqZM9HnwQ.AMaYfD3Xt/gDKclAfr.Xy"], ["created_at", "2018-12-04 02:51:00.294626"], ["updated_at", "2018-12-04 02:51:00.294626"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.300749"], ["updated_at", "2018-12-04 02:51:00.300749"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2183” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.305919"], ["last_sign_in_at", "2018-12-04 02:51:00.305919"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.307121"], ["id", 2484]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2183"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K/ECT0phxYlEgoDvgFE6QulIMmiyXaEyZZNUC8wAJ8xqDbqEbe5BS"], ["created_at", "2018-12-04 02:51:00.322143"], ["updated_at", "2018-12-04 02:51:00.322143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.326816"], ["last_sign_in_at", "2018-12-04 02:51:00.326816"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.327939"], ["id", 2485]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$smVsKFesIpk/6Q7rQnRzxeTTBe5AnyIN1oQicla9x0fXvehKGsNV2"], ["created_at", "2018-12-04 02:51:00.354283"], ["updated_at", "2018-12-04 02:51:00.354283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.358920"], ["updated_at", "2018-12-04 02:51:00.358920"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.363048"], ["updated_at", "2018-12-04 02:51:00.363048"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.366456"], ["updated_at", "2018-12-04 02:51:00.366456"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2184], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2486], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2486], ["room_id", 2184], ["created_at", "2018-12-04 02:51:00.374638"], ["updated_at", "2018-12-04 02:51:00.374638"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.379336"], ["last_sign_in_at", "2018-12-04 02:51:00.379336"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.380425"], ["id", 2486]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.1ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 21ms (Views: 7.3ms | ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.Fdlw9HkenoMABJ2v8FjpOBU5OloPNNDV9BpTRyRFVzTeyJthRQ8."], ["created_at", "2018-12-04 02:51:00.415202"], ["updated_at", "2018-12-04 02:51:00.415202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.419313"], ["updated_at", "2018-12-04 02:51:00.419313"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.423340"], ["updated_at", "2018-12-04 02:51:00.423340"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:51:00.426776"], ["updated_at", "2018-12-04 02:51:00.426776"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2187], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2487], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2487], ["room_id", 2187], ["created_at", "2018-12-04 02:51:00.434688"], ["updated_at", "2018-12-04 02:51:00.434688"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 00:51:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:51:00.439655"], ["last_sign_in_at", "2018-12-04 02:51:00.439655"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:51:00.440792"], ["id", 2487]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tCSF2ymDe5UVCSgtjsmuTOeB4sMZYhvY6OhpMFbuhE0LX6JgPk5iy"], ["created_at", "2018-12-04 02:54:41.301887"], ["updated_at", "2018-12-04 02:54:41.301887"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$t6DzmLj7Nw755o60TeeSQO2gY617BGdAnRHxQxipFkhTkexY0yooO"], ["created_at", "2018-12-04 02:54:41.310229"], ["updated_at", "2018-12-04 02:54:41.310229"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:41.329722"], ["updated_at", "2018-12-04 02:54:41.329722"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2190], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2489], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2489], ["room_id", 2190], ["created_at", "2018-12-04 02:54:41.386634"], ["updated_at", "2018-12-04 02:54:41.386634"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2318"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2318], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2190], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2489], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.5ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.5ms)

UserMailer#status_notification: processed outbound mail in 360.9ms Sent mail to 123@123.com (11.3ms) Date: Tue, 04 Dec 2018 00:54:41 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05ec71be618_21e4678f183917c@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05ec71bc812_21e4678f1839097";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05ec71bc812_21e4678f1839097 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05ec71bc812_21e4678f1839097 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
       Email styles need to be inline   
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05ec71bc812_21e4678f1839097–

Completed 302 Found in 386ms (ActiveRecord: 2.1ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OnblLVILie2NQuRC9AVCqOxQbOBWlk4Xy91emoxxeT0fSXMa1YMdi"], ["created_at", "2018-12-04 02:54:41.795763"], ["updated_at", "2018-12-04 02:54:41.795763"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$N8Y4EO6bi3pCppRXXjDGmuvuUE5MfKeQ5nOvET/V9OXEgMgtWfr7."], ["created_at", "2018-12-04 02:54:41.803990"], ["updated_at", "2018-12-04 02:54:41.803990"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:41.808411"], ["updated_at", "2018-12-04 02:54:41.808411"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2191], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2491], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2491], ["room_id", 2191], ["created_at", "2018-12-04 02:54:41.817027"], ["updated_at", "2018-12-04 02:54:41.817027"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2319"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2319], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2191], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2491], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-04 02:54:41.828783"], ["id", 2319]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms Sent mail to 123@123.com (5.9ms) Date: Tue, 04 Dec 2018 00:54:41 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05ec71cceb9_21e4678f18393c9@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05ec71cbf1e_21e4678f1839221";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05ec71cbf1e_21e4678f1839221 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05ec71cbf1e_21e4678f1839221 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05ec71cbf1e_21e4678f1839221–

Completed 302 Found in 22ms (ActiveRecord: 3.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$34YG1xUmD2EJ/Ox4qIVJD.KYyZGn/.5h.5h0qbmT1frz7KIN4vn.."], ["created_at", "2018-12-04 02:54:41.852826"], ["updated_at", "2018-12-04 02:54:41.852826"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$689kc7VZ68zQvd1fMjK.POKXWVHb6iafESHiP.4wTutdB1Uzyl0qW"], ["created_at", "2018-12-04 02:54:41.860952"], ["updated_at", "2018-12-04 02:54:41.860952"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:41.865331"], ["updated_at", "2018-12-04 02:54:41.865331"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2192], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2493], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2493], ["room_id", 2192], ["created_at", "2018-12-04 02:54:41.873668"], ["updated_at", "2018-12-04 02:54:41.873668"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hahDV32YH2wGGV87cjsw2u9eFp6mLsD1f1PauA0UuyroClMajqFRq"], ["created_at", "2018-12-04 02:54:41.890375"], ["updated_at", "2018-12-04 02:54:41.890375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wRDWiB02MM60vYScgh.31OyNzm9pdo1DVZeN5NdaXTV9XeBMTHSb2"], ["created_at", "2018-12-04 02:54:41.899210"], ["updated_at", "2018-12-04 02:54:41.899210"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:41.903095"], ["updated_at", "2018-12-04 02:54:41.903095"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2193], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2495], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2495], ["room_id", 2193], ["created_at", "2018-12-04 02:54:41.910819"], ["updated_at", "2018-12-04 02:54:41.910819"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2321], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$XFgdWF2j5pwh4exEz2k68uQffAiIGPPylEbuHCuwc7AiOnAmmOBE2"], ["created_at", "2018-12-04 02:54:41.923864"], ["updated_at", "2018-12-04 02:54:41.923864"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2496"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "V-yQMdjsN6e1e0gnLYyN9Q"], ["updated_at", "2018-12-04 02:54:41.932613"], ["id", 2496]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 02:54:41.936279"], ["reset_sent_at", "2018-12-04 02:54:41.935666"], ["id", 2496]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)

UserMailer#password_reset: processed outbound mail in 10.2ms Sent mail to teste@unb.com.br (6.2ms) Date: Tue, 04 Dec 2018 00:54:41 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05ec71e8477_21e4678f1839659@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05ec71e74e7_21e4678f1839593";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05ec71e74e7_21e4678f1839593 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/V-yQMdjsN6e1e0gnLYyN9Q/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05ec71e74e7_21e4678f1839593 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/V-yQMdjsN6e1e0gnLYyN9Q/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05ec71e74e7_21e4678f1839593–

Redirected to test.host/login Completed 302 Found in 27ms (ActiveRecord: 2.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$rW0XnJbICxMFogzmccT/Cecv5/dYZbW07xP84CLw/sd/4l0GzysR6"], ["created_at", "2018-12-04 02:54:41.964193"], ["updated_at", "2018-12-04 02:54:41.964193"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.3ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$hpfUL7ygSQZk05s/pxtmJO6SA.ZDPbBMSAHGTISdYZ4nFWwLBM67i"], ["created_at", "2018-12-04 02:54:41.981928"], ["updated_at", "2018-12-04 02:54:41.981928"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2498"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$r6nqXneMF06kAmJZ2zlI9eZT0pA652IdaK4BGyRUjB0rW2sSvSEfS"], ["updated_at", "2018-12-04 02:54:41.990936"], ["id", 2498]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 8ms (ActiveRecord: 1.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$TiN2Bv97EGH3fgcsgeLG9.PgErY9TePYwqhTRw1tQ4v0TA4EA3Jwe"], ["created_at", "2018-12-04 02:54:42.002709"], ["updated_at", "2018-12-04 02:54:42.002709"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2499"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$Xrls5pTWrZ0v80CnPLcDruImgmrb8egvTwsdyCH6CxXS0XrGMC01S"], ["created_at", "2018-12-04 02:54:42.022155"], ["updated_at", "2018-12-04 02:54:42.022155"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2500"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$Xph0AeZBnbwB.oziUCWuWOzvRzMQDEmVLyusFtEMc8/ege8elQqw."], ["created_at", "2018-12-04 02:54:42.052378"], ["updated_at", "2018-12-04 02:54:42.052378"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2501"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$hzXxFqcrJ39YqcRjUok/ze1f1qPSN9rqfe83yXq/vP6uV0xqTOS9G"], ["created_at", "2018-12-04 02:54:42.071173"], ["updated_at", "2018-12-04 02:54:42.071173"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2502"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SazjZM9ctIHEEGVCkLEVdejJtIxfuV/FAD8OKt3z0qUQpbG5RvKge"], ["created_at", "2018-12-04 02:54:42.089067"], ["updated_at", "2018-12-04 02:54:42.089067"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$x4lJL4CwT6.tj7j3QkRGseLq8gYMYwTLR5dKCp3qzy3RWNCFT07am"], ["created_at", "2018-12-04 02:54:42.105284"], ["updated_at", "2018-12-04 02:54:42.105284"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.6ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0Et8EuIYDYYT6h6Zqfq4yuGyq6xnDPyeEvshpSswmRG7JLqKRBzZS"], ["created_at", "2018-12-04 02:54:42.122807"], ["updated_at", "2018-12-04 02:54:42.122807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:42.126653"], ["updated_at", "2018-12-04 02:54:42.126653"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2194], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2505], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2505], ["room_id", 2194], ["created_at", "2018-12-04 02:54:42.133901"], ["updated_at", "2018-12-04 02:54:42.133901"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pjrOou0Kl4hMVeepgSh98.MVAsXm3pkYhWqAFnlCBqZ0LtZCjnx0u"], ["created_at", "2018-12-04 02:54:42.150181"], ["updated_at", "2018-12-04 02:54:42.150181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:42.154255"], ["updated_at", "2018-12-04 02:54:42.154255"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2195], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2506], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2506], ["room_id", 2195], ["created_at", "2018-12-04 02:54:42.161435"], ["updated_at", "2018-12-04 02:54:42.161435"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Nwg5tVdjE8D0b3bZFrgGMetTCMAqWkRLomkwYybyxS8qJWNJdpT0u"], ["created_at", "2018-12-04 02:54:42.219129"], ["updated_at", "2018-12-04 02:54:42.219129"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:42.223410"], ["updated_at", "2018-12-04 02:54:42.223410"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:54:42 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:42.237754"], ["last_sign_in_at", "2018-12-04 02:54:42.237754"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:42.239195"], ["id", 2507]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2196"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2196], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2507], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2507], ["room_id", 2196], ["created_at", "2018-12-04 02:54:42.257230"], ["updated_at", "2018-12-04 02:54:42.257230"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.0ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2196], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fBsTuBlbnsV2KQANJybIme2b8.A3SjAvNXKkWRnXStGXOm1LCCEBi"], ["created_at", "2018-12-04 02:54:42.274101"], ["updated_at", "2018-12-04 02:54:42.274101"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:42.278612"], ["updated_at", "2018-12-04 02:54:42.278612"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:54:42 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:42.284335"], ["last_sign_in_at", "2018-12-04 02:54:42.284335"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:42.285757"], ["id", 2508]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2197"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2197], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2508], ["LIMIT", 1]]
SQL (17.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2508], ["room_id", 2197], ["created_at", "2018-12-04 02:54:42.298389"], ["updated_at", "2018-12-04 02:54:42.298389"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 27ms (ActiveRecord: 19.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$r90.t1IGeiy.75g/xDgB7evMHS5.NRz9S0SMjeW7oJXYH50VmSqhu"], ["created_at", "2018-12-04 02:54:42.331716"], ["updated_at", "2018-12-04 02:54:42.331716"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:42.337182"], ["updated_at", "2018-12-04 02:54:42.337182"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:54:42 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:42.343114"], ["last_sign_in_at", "2018-12-04 02:54:42.343114"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:42.344360"], ["id", 2509]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2198", "user_id"=>"2509"}
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2198], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2509], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2509], ["room_id", 2198], ["created_at", "2018-12-04 02:54:42.357545"], ["updated_at", "2018-12-04 02:54:42.357545"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.7ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:54:42 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2198", "user_id"=>"2509"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2509], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2198], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2509], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2509], ["room_id", 2198], ["created_at", "2018-12-04 02:54:42.376589"], ["updated_at", "2018-12-04 02:54:42.376589"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 3.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$m3CBS4SkdGJKTgk6.O51FOc4pxjQUOUiRZYJZ577TgzL2uzOAOMym"], ["created_at", "2018-12-04 02:54:42.389184"], ["updated_at", "2018-12-04 02:54:42.389184"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:42.393569"], ["updated_at", "2018-12-04 02:54:42.393569"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:54:42 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:42.399568"], ["last_sign_in_at", "2018-12-04 02:54:42.399568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:42.400703"], ["id", 2510]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2199", "user_id"=>"2510"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2199], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2510], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2510], ["room_id", 2199], ["created_at", "2018-12-04 02:54:42.412823"], ["updated_at", "2018-12-04 02:54:42.412823"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.6ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:54:42 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2199", "user_id"=>"2510"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2510], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2199], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2510], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2510], ["room_id", 2199], ["created_at", "2018-12-04 02:54:42.429157"], ["updated_at", "2018-12-04 02:54:42.429157"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.5ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2199], ["user_id", 2510], ["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CwpfD0TVlGdwiSkEz.bSd.vy62zeMq7/wCio3XUJTRviTd77Ah/Sm"], ["created_at", "2018-12-04 02:54:42.444780"], ["updated_at", "2018-12-04 02:54:42.444780"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:42.449223"], ["updated_at", "2018-12-04 02:54:42.449223"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:54:42 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:42.455046"], ["last_sign_in_at", "2018-12-04 02:54:42.455046"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:42.456145"], ["id", 2511]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2200", "user_id"=>"2511"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2200], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2511], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2511], ["room_id", 2200], ["created_at", "2018-12-04 02:54:42.468402"], ["updated_at", "2018-12-04 02:54:42.468402"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:54:42 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2200", "user_id"=>"2511"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2511], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2200], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2511], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2511], ["room_id", 2200], ["created_at", "2018-12-04 02:54:42.484371"], ["updated_at", "2018-12-04 02:54:42.484371"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.3ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2200], ["user_id", 2511], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$q95JkyJ8M35/ytEg3lCnouhNZY7X8gAlnbzoRgO8ipwZhsgFp90Uy"], ["created_at", "2018-12-04 02:54:42.498272"], ["updated_at", "2018-12-04 02:54:42.498272"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:42.502557"], ["updated_at", "2018-12-04 02:54:42.502557"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:54:42 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:42.507705"], ["last_sign_in_at", "2018-12-04 02:54:42.507705"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:42.508756"], ["id", 2512]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2201"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2201], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rpxQAqG8yFAMAiuvhJvNzeuuHP6wy0PaDJfee6D8.d0LBgueK/tZu"], ["created_at", "2018-12-04 02:54:42.529406"], ["updated_at", "2018-12-04 02:54:42.529406"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:42.534027"], ["updated_at", "2018-12-04 02:54:42.534027"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:54:42 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:42.539098"], ["last_sign_in_at", "2018-12-04 02:54:42.539098"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:42.540307"], ["id", 2513]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2202"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$X1LOkUhfsdV52rHSBHS1Xu6sXNcHABTi2VGavFxToTMryRhL/iaY."], ["created_at", "2018-12-04 02:54:42.558650"], ["updated_at", "2018-12-04 02:54:42.558650"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:42.563358"], ["updated_at", "2018-12-04 02:54:42.563358"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2203], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2514], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2514], ["room_id", 2203], ["created_at", "2018-12-04 02:54:42.572075"], ["updated_at", "2018-12-04 02:54:42.572075"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2203” for 127.0.0.1 at 2018-12-04 00:54:42 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:42.576660"], ["last_sign_in_at", "2018-12-04 02:54:42.576660"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:42.577701"], ["id", 2514]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2203"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2203], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2203')
Rendered appointments/show.html.erb within layouts/application (13.7ms)
Rendered layouts/_header-user.html.erb (2.9ms)

Completed 200 OK in 1836ms (Views: 1830.9ms | ActiveRecord: 1.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eSSutiweS1rmE368R8YW6emeyfgt2E.avSilqUEHjDSW2LVzw3.MO"], ["created_at", "2018-12-04 02:54:44.433104"], ["updated_at", "2018-12-04 02:54:44.433104"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:44.438106"], ["updated_at", "2018-12-04 02:54:44.438106"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2204], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2515], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2515], ["room_id", 2204], ["created_at", "2018-12-04 02:54:44.446993"], ["updated_at", "2018-12-04 02:54:44.446993"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2204], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2515], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2515], ["room_id", 2204], ["created_at", "2018-12-04 02:54:44.456095"], ["updated_at", "2018-12-04 02:54:44.456095"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.460294"], ["last_sign_in_at", "2018-12-04 02:54:44.460294"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.461392"], ["id", 2515]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2515]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.1ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 18ms (Views: 9.1ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pEGZ1Z3nYHx3JjFW05cVCepL3Sbj7GQdMzfITbZu92Yr6E280F/I2"], ["created_at", "2018-12-04 02:54:44.493112"], ["updated_at", "2018-12-04 02:54:44.493112"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:44.497034"], ["updated_at", "2018-12-04 02:54:44.497034"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2205], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2516], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2516], ["room_id", 2205], ["created_at", "2018-12-04 02:54:44.505045"], ["updated_at", "2018-12-04 02:54:44.505045"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2205], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2516], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2516], ["room_id", 2205], ["created_at", "2018-12-04 02:54:44.512339"], ["updated_at", "2018-12-04 02:54:44.512339"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.516875"], ["last_sign_in_at", "2018-12-04 02:54:44.516875"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.517773"], ["id", 2516]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2516]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GbZBBXdGH3IrpNzHD3YVl.DcXO344Nv/7iHLgYTdx1cmxWiIK3nEu"], ["created_at", "2018-12-04 02:54:44.540062"], ["updated_at", "2018-12-04 02:54:44.540062"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:44.544023"], ["updated_at", "2018-12-04 02:54:44.544023"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2206], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2517], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2517], ["room_id", 2206], ["created_at", "2018-12-04 02:54:44.551656"], ["updated_at", "2018-12-04 02:54:44.551656"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2337” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.555599"], ["last_sign_in_at", "2018-12-04 02:54:44.555599"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.556504"], ["id", 2517]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2337"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2337], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2337]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mmlT3WqV4ogr6w4bDUE64eQ6y2Zs3xCaUU1JQoY9/vYj61A4lMdty"], ["created_at", "2018-12-04 02:54:44.577587"], ["updated_at", "2018-12-04 02:54:44.577587"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:44.582076"], ["updated_at", "2018-12-04 02:54:44.582076"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ErD/WJ.03j9hSA6pr21hqOGo5Shm2r4dG5UTLg5sogt6Y2CVHw4y."], ["created_at", "2018-12-04 02:54:44.589399"], ["updated_at", "2018-12-04 02:54:44.589399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2207], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2519], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2519], ["room_id", 2207], ["created_at", "2018-12-04 02:54:44.597658"], ["updated_at", "2018-12-04 02:54:44.597658"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 02:54:44.601457"], ["id", 2338]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2207], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2519], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2519], ["room_id", 2207], ["created_at", "2018-12-04 02:54:44.608640"], ["updated_at", "2018-12-04 02:54:44.608640"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 02:54:44.612190"], ["id", 2339]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.615864"], ["last_sign_in_at", "2018-12-04 02:54:44.615864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.616763"], ["id", 2518]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2519], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2207], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2519], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2207], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.0ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 17ms (Views: 13.1ms | ActiveRecord: 1.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dq9ReQobUui702a9pIQvg.p61l3hWjmDDD35YgrH4QhQSUu8wgldG"], ["created_at", "2018-12-04 02:54:44.647442"], ["updated_at", "2018-12-04 02:54:44.647442"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:44.651195"], ["updated_at", "2018-12-04 02:54:44.651195"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YGhUPddeaPGd7.UVUdnZSup6oJxFJwIPTJrTn/mGYsBOa.jq7jhWG"], ["created_at", "2018-12-04 02:54:44.658005"], ["updated_at", "2018-12-04 02:54:44.658005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2208], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2521], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2521], ["room_id", 2208], ["created_at", "2018-12-04 02:54:44.665482"], ["updated_at", "2018-12-04 02:54:44.665482"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 02:54:44.669157"], ["id", 2340]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2208], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2521], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2521], ["room_id", 2208], ["created_at", "2018-12-04 02:54:44.675998"], ["updated_at", "2018-12-04 02:54:44.675998"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 02:54:44.679265"], ["id", 2341]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.682855"], ["last_sign_in_at", "2018-12-04 02:54:44.682855"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.683760"], ["id", 2520]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2521], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2208], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2521], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2208], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (6.9ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GN8SI4irXcnF4r.mJ9rpeet0LnGbW7iH8lMcJ5sHh3oZxipe1vZfS"], ["created_at", "2018-12-04 02:54:44.713121"], ["updated_at", "2018-12-04 02:54:44.713121"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.717262"], ["last_sign_in_at", "2018-12-04 02:54:44.717262"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.718195"], ["id", 2522]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.4ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MYDxUsbFnUwhiVBRPk/i8.OAReWXdALDx8BwJA/B6TNhKRXUmliHu"], ["created_at", "2018-12-04 02:54:44.747948"], ["updated_at", "2018-12-04 02:54:44.747948"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.752493"], ["last_sign_in_at", "2018-12-04 02:54:44.752493"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.753499"], ["id", 2523]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5V1j4kpY8cZnQc01F6VBn.CYl33muSxwet9Ul4LoapzXYxWOA2eae"], ["created_at", "2018-12-04 02:54:44.768310"], ["updated_at", "2018-12-04 02:54:44.768310"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.772299"], ["last_sign_in_at", "2018-12-04 02:54:44.772299"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.773124"], ["id", 2524]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SFcEkl4Q4arsiT1qBrjfvuDz4kBrDLitA9NgTXlXUbcuQRWHy7tpS"], ["created_at", "2018-12-04 02:54:44.795295"], ["updated_at", "2018-12-04 02:54:44.795295"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.799587"], ["last_sign_in_at", "2018-12-04 02:54:44.799587"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.800530"], ["id", 2525]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 00:54:44 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Pi1T8PdbsP3nNBM9lFooROqn0rYzDQUyGy4dDTgFuM18RBASydk8u"], ["created_at", "2018-12-04 02:54:44.830246"], ["updated_at", "2018-12-04 02:54:44.830246"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:44.834287"], ["updated_at", "2018-12-04 02:54:44.834287"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2209” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.838014"], ["last_sign_in_at", "2018-12-04 02:54:44.838014"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.838974"], ["id", 2526]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2209"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2209], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MbmrvmK5hNxxtQJKxRutde73SAE40AGrHm8ZH7.1tvkeO7RBUR3rm"], ["created_at", "2018-12-04 02:54:44.859562"], ["updated_at", "2018-12-04 02:54:44.859562"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:44.863602"], ["updated_at", "2018-12-04 02:54:44.863602"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2210” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.867194"], ["last_sign_in_at", "2018-12-04 02:54:44.867194"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.867998"], ["id", 2527]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2210"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2210], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:44.883786"], ["updated_at", "2018-12-04 02:54:44.883786"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2211” for 127.0.0.1 at 2018-12-04 00:54:44 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2211"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$s8NkgNESHueI/CKv5ZPLKu./sWyy7Dprr1Cmkf2ICWlrjmMyS/12G"], ["created_at", "2018-12-04 02:54:44.898631"], ["updated_at", "2018-12-04 02:54:44.898631"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:44.902615"], ["updated_at", "2018-12-04 02:54:44.902615"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2212” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.906297"], ["last_sign_in_at", "2018-12-04 02:54:44.906297"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.907302"], ["id", 2528]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2212"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:44.927436"], ["updated_at", "2018-12-04 02:54:44.927436"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2213” for 127.0.0.1 at 2018-12-04 00:54:44 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2213"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1xLHhJorb096G6Ebd3kzkuHqhX/xrhtyJh0nRJtqRPvvzh9hyzZbe"], ["created_at", "2018-12-04 02:54:44.946099"], ["updated_at", "2018-12-04 02:54:44.946099"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:44.950409"], ["updated_at", "2018-12-04 02:54:44.950409"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2214/edit” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.954154"], ["last_sign_in_at", "2018-12-04 02:54:44.954154"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.955175"], ["id", 2529]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2214"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2214], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 9.1ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bv/luxSAx4BYPMnhdpAe1eERGAEghLcsGO3rF.ItAZqCU/DMxiTQi"], ["created_at", "2018-12-04 02:54:44.980810"], ["updated_at", "2018-12-04 02:54:44.980810"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:44.985111"], ["updated_at", "2018-12-04 02:54:44.985111"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2215/edit” for 127.0.0.1 at 2018-12-04 00:54:44 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:44.988804"], ["last_sign_in_at", "2018-12-04 02:54:44.988804"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:44.989784"], ["id", 2530]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2215"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2215], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.010152"], ["updated_at", "2018-12-04 02:54:45.010152"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2216” for 127.0.0.1 at 2018-12-04 00:54:45 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2216"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$29PhWgxIvOVuweXzXXqqTeXgU8nGxHLw0PaJzDpRjIS4EP0ihsE66"], ["created_at", "2018-12-04 02:54:45.025344"], ["updated_at", "2018-12-04 02:54:45.025344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.030962"], ["last_sign_in_at", "2018-12-04 02:54:45.030962"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.031897"], ["id", 2531]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.038350"], ["updated_at", "2018-12-04 02:54:45.038350"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$42TmsW.h2CA8JwwJ9CiJN.f137IJFL1NacA6WUoGyF.6FaOhFo03G"], ["created_at", "2018-12-04 02:54:45.052361"], ["updated_at", "2018-12-04 02:54:45.052361"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.057650"], ["last_sign_in_at", "2018-12-04 02:54:45.057650"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.058934"], ["id", 2532]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.068705"], ["updated_at", "2018-12-04 02:54:45.068705"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6pFxlGnWmjshU8fGVZfWM.hgMtc7ltKIavlkdC33IwQt13zAA/WeO"], ["created_at", "2018-12-04 02:54:45.081758"], ["updated_at", "2018-12-04 02:54:45.081758"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.087801"], ["last_sign_in_at", "2018-12-04 02:54:45.087801"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.088759"], ["id", 2533]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wXaiJKxACWJnfq3U6XSRmuTNX.oMuQ3GQbGnyZU31G.XF24./Wat."], ["created_at", "2018-12-04 02:54:45.108021"], ["updated_at", "2018-12-04 02:54:45.108021"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.112927"], ["last_sign_in_at", "2018-12-04 02:54:45.112927"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.113824"], ["id", 2534]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uU8.XPKY3bdYqh4ZLwEMAOVUUqYubN0ft5F/C6Thps4MdmsxKGrbK"], ["created_at", "2018-12-04 02:54:45.130607"], ["updated_at", "2018-12-04 02:54:45.130607"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.135758"], ["last_sign_in_at", "2018-12-04 02:54:45.135758"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.136854"], ["id", 2535]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a1OxNqubStvQlfH6okIfeuCjPHmY8H3/Dy.K7RtAqWUmpUyBceWku"], ["created_at", "2018-12-04 02:54:45.152170"], ["updated_at", "2018-12-04 02:54:45.152170"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.157045"], ["updated_at", "2018-12-04 02:54:45.157045"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2219” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.162156"], ["last_sign_in_at", "2018-12-04 02:54:45.162156"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.163233"], ["id", 2536]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2219"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2219], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 02:54:45.171216"], ["id", 2219]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2219 Completed 302 Found in 7ms (ActiveRecord: 1.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0QgOLZ8dx.mdRs4o5109WuxZ8rgMsHbAABWWWxRQHfyW2q5Amn8lO"], ["created_at", "2018-12-04 02:54:45.185761"], ["updated_at", "2018-12-04 02:54:45.185761"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.190831"], ["updated_at", "2018-12-04 02:54:45.190831"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2220” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.195613"], ["last_sign_in_at", "2018-12-04 02:54:45.195613"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.196615"], ["id", 2537]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2220"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2220], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 02:54:45.204476"], ["id", 2220]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2220 Completed 302 Found in 7ms (ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.d2n1vehkJHpOfo5.F9M4uWXdhLozd7v99ezMNdOvvrWej0t9Ca2."], ["created_at", "2018-12-04 02:54:45.217167"], ["updated_at", "2018-12-04 02:54:45.217167"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.221186"], ["updated_at", "2018-12-04 02:54:45.221186"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2221” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.226474"], ["last_sign_in_at", "2018-12-04 02:54:45.226474"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.227599"], ["id", 2538]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2221"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2221], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C0C4O1sxnOED3HvmjxKQoOzxd9mHgVztJ0cp8RqGApoVPzdJ9QKNi"], ["created_at", "2018-12-04 02:54:45.254928"], ["updated_at", "2018-12-04 02:54:45.254928"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.259753"], ["updated_at", "2018-12-04 02:54:45.259753"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2222” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.264514"], ["last_sign_in_at", "2018-12-04 02:54:45.264514"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.265640"], ["id", 2539]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2222"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2222], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 1.1ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$r.NM2rIHJasZQvtuftAeV.Y09HaDtCudQ9c8VR.MxlGq04l4VglFW"], ["created_at", "2018-12-04 02:54:45.294927"], ["updated_at", "2018-12-04 02:54:45.294927"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.301934"], ["last_sign_in_at", "2018-12-04 02:54:45.301934"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.303351"], ["id", 2540]]
 (0.7ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nDV94j/JqyhJSx3.Gp0J3uQ0CrD6kf48nTjHoIL2LsNbSZW6mymRq"], ["created_at", "2018-12-04 02:54:45.321197"], ["updated_at", "2018-12-04 02:54:45.321197"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.326158"], ["updated_at", "2018-12-04 02:54:45.326158"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2223” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.330709"], ["last_sign_in_at", "2018-12-04 02:54:45.330709"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.332028"], ["id", 2541]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2223"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2223], ["LIMIT", 1]]
 (0.7ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2223]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.9ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bRDc5mrieQxaWFW0uweNp.2kO/8FycVTxrSmLPh3LOMs7CBoS/1o6"], ["created_at", "2018-12-04 02:54:45.355546"], ["updated_at", "2018-12-04 02:54:45.355546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.360916"], ["updated_at", "2018-12-04 02:54:45.360916"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2224” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.365535"], ["last_sign_in_at", "2018-12-04 02:54:45.365535"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.366598"], ["id", 2542]]
 (0.7ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2224"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2224], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2224]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1r1pe4sfq5Q8gB6u.V9Cj..DTFq9v3N1UVcNYix6Wti2Xku29Xy72"], ["created_at", "2018-12-04 02:54:45.389415"], ["updated_at", "2018-12-04 02:54:45.389415"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.394859"], ["updated_at", "2018-12-04 02:54:45.394859"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2225” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.399654"], ["last_sign_in_at", "2018-12-04 02:54:45.399654"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.400691"], ["id", 2543]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2225"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$r0VPEmlY.HAXJzFG8I9zcOzNdMAbSVSDIkCu4jN8L0c/XhoW9iUbq"], ["created_at", "2018-12-04 02:54:45.419661"], ["updated_at", "2018-12-04 02:54:45.419661"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.424327"], ["updated_at", "2018-12-04 02:54:45.424327"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2226” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.428992"], ["last_sign_in_at", "2018-12-04 02:54:45.428992"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.430029"], ["id", 2544]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2226"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OBYC79kcJeOEwzfH0g/spuTiope3CJWQzNJymGwDcNmOd9QcOgMv."], ["created_at", "2018-12-04 02:54:45.447686"], ["updated_at", "2018-12-04 02:54:45.447686"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.6ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.452607"], ["last_sign_in_at", "2018-12-04 02:54:45.452607"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.453859"], ["id", 2545]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (8.6ms)

Completed 200 OK in 17ms (Views: 16.5ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/xAsE9Cx4FvKDKRrZJODhO7vvaykwyCJagyiSq60tOr.s/habENPW"], ["created_at", "2018-12-04 02:54:45.490571"], ["updated_at", "2018-12-04 02:54:45.490571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.496153"], ["updated_at", "2018-12-04 02:54:45.496153"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.500261"], ["updated_at", "2018-12-04 02:54:45.500261"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.504124"], ["updated_at", "2018-12-04 02:54:45.504124"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2227], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2546], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2546], ["room_id", 2227], ["created_at", "2018-12-04 02:54:45.514192"], ["updated_at", "2018-12-04 02:54:45.514192"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.520696"], ["last_sign_in_at", "2018-12-04 02:54:45.520696"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.521863"], ["id", 2546]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 26ms (Views: 10.0ms | ActiveRecord: 1.8ms)

Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dvyUneIdgbSe/37HK5K/1uC2T40mOVPWkC/e8GOCCf.sNc6BLf1DK"], ["created_at", "2018-12-04 02:54:45.566978"], ["updated_at", "2018-12-04 02:54:45.566978"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.571951"], ["updated_at", "2018-12-04 02:54:45.571951"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.5ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.576285"], ["updated_at", "2018-12-04 02:54:45.576285"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:54:45.580014"], ["updated_at", "2018-12-04 02:54:45.580014"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2230], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2547], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2547], ["room_id", 2230], ["created_at", "2018-12-04 02:54:45.589183"], ["updated_at", "2018-12-04 02:54:45.589183"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 00:54:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:54:45.593949"], ["last_sign_in_at", "2018-12-04 02:54:45.593949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:54:45.595049"], ["id", 2547]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$A2PVaSZPu/E8XFOP2nww.epgsa4iJVP6zivXIt5kZFvAAfbJG54ja"], ["created_at", "2018-12-04 02:56:27.054803"], ["updated_at", "2018-12-04 02:56:27.054803"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2548"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "Lf7mMmKNMB25-jrTvz0LzA"], ["updated_at", "2018-12-04 02:56:27.075402"], ["id", 2548]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 02:56:27.080157"], ["reset_sent_at", "2018-12-04 02:56:27.079342"], ["id", 2548]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.6ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.6ms)

UserMailer#password_reset: processed outbound mail in 411.6ms Sent mail to teste@unb.com.br (13.7ms) Date: Tue, 04 Dec 2018 00:56:27 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05ecdb7ac60_2568fa2f1c76371@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05ecdb787c6_2568fa2f1c7628c";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05ecdb787c6_2568fa2f1c7628c Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/Lf7mMmKNMB25-jrTvz0LzA/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05ecdb787c6_2568fa2f1c7628c Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/Lf7mMmKNMB25-jrTvz0LzA/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05ecdb787c6_2568fa2f1c7628c–

Redirected to test.host/login Completed 302 Found in 443ms (ActiveRecord: 3.9ms)

 (0.5ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$ZXWB.7qbGx1bkm.mvslqr.oqJvNh8hubHN9rvaN3udK/QgOxMgj/K"], ["created_at", "2018-12-04 02:56:27.520934"], ["updated_at", "2018-12-04 02:56:27.520934"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.2ms

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$JoZdniuSynQzAj3VdTbh7uUetc35CJmsgbgKD1XlCYHpcd8oKF3zS"], ["created_at", "2018-12-04 02:56:27.542009"], ["updated_at", "2018-12-04 02:56:27.542009"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2550"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$JuSObIrSSqumFwgusj/xWeoqcPIpFODFDuBEmEN9Ls70e4k6Sw4/G"], ["updated_at", "2018-12-04 02:56:27.553721"], ["id", 2550]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 10ms (ActiveRecord: 1.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$bg7NwRgVIn9Bi91cxwgeKe1zB./6DuRvNhOnvEkDc6daTPnsmwukS"], ["created_at", "2018-12-04 02:56:27.567851"], ["updated_at", "2018-12-04 02:56:27.567851"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2551"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$knsu8sY6EiTvDROKeosHNOhPGyXJ98U1bVWqUC6tLIEOum/ibWNkK"], ["created_at", "2018-12-04 02:56:27.590065"], ["updated_at", "2018-12-04 02:56:27.590065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2552"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$5EpWhh14wsHFYoludWRD4ugUDpWkMOAWZ29/VUSHEvzm5jMc24k1a"], ["created_at", "2018-12-04 02:56:27.625057"], ["updated_at", "2018-12-04 02:56:27.625057"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2553"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$Bq4ynWMw1JY3QuptFriJU.bvmjxPVEKYfmtlS0LVdhpd7af6eTPfq"], ["created_at", "2018-12-04 02:56:27.646956"], ["updated_at", "2018-12-04 02:56:27.646956"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2554"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bGUpgNDAaespr7TA4JU4X.kG4UChM5xlOTHKFE.QX2nBahLJpqDZa"], ["created_at", "2018-12-04 02:56:27.666464"], ["updated_at", "2018-12-04 02:56:27.666464"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 6.1ms

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AucXQeqgGgsBGDpV61i1vO1b2VXGAiVU.DrZqfQJiGZnHdYOhal.C"], ["created_at", "2018-12-04 02:56:27.684850"], ["updated_at", "2018-12-04 02:56:27.684850"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CpfY07HHlSnaqIHWUcW03.iwF1Bs6s2fWMX5jiOChxoxSPqw9uegW"], ["created_at", "2018-12-04 02:56:27.787285"], ["updated_at", "2018-12-04 02:56:27.787285"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:27.791669"], ["updated_at", "2018-12-04 02:56:27.791669"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:56:27 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:27.805524"], ["last_sign_in_at", "2018-12-04 02:56:27.805524"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:27.807022"], ["id", 2557]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2233"}
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2233], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2557], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2557], ["room_id", 2233], ["created_at", "2018-12-04 02:56:27.844799"], ["updated_at", "2018-12-04 02:56:27.844799"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 20ms (ActiveRecord: 3.9ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2233], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$k6qmdhvpkvfYxdHyIA2KGub.YvBrFXsG1NjWpZMpCoiW3YTzANNWa"], ["created_at", "2018-12-04 02:56:27.864142"], ["updated_at", "2018-12-04 02:56:27.864142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:27.868804"], ["updated_at", "2018-12-04 02:56:27.868804"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:56:27 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:27.873920"], ["last_sign_in_at", "2018-12-04 02:56:27.873920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:27.874987"], ["id", 2558]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2234"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2234], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2558], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2558], ["room_id", 2234], ["created_at", "2018-12-04 02:56:27.887764"], ["updated_at", "2018-12-04 02:56:27.887764"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yvlDVVLCA6p7w0gvkQngN.fbb.79/MCPjh3kSmYqVsx2YT0unsu7S"], ["created_at", "2018-12-04 02:56:27.901505"], ["updated_at", "2018-12-04 02:56:27.901505"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:27.906043"], ["updated_at", "2018-12-04 02:56:27.906043"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:56:27 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:27.911494"], ["last_sign_in_at", "2018-12-04 02:56:27.911494"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:27.912530"], ["id", 2559]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2235", "user_id"=>"2559"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2235], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2559], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2559], ["room_id", 2235], ["created_at", "2018-12-04 02:56:27.924936"], ["updated_at", "2018-12-04 02:56:27.924936"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:56:27 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2235", "user_id"=>"2559"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2559], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2235], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2559], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2559], ["room_id", 2235], ["created_at", "2018-12-04 02:56:27.942463"], ["updated_at", "2018-12-04 02:56:27.942463"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 4.1ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$njs1p1E/wYiUiJA8s5F/kush3OzRCCGik2k1OgUWmSJaI47UzXXLG"], ["created_at", "2018-12-04 02:56:27.955558"], ["updated_at", "2018-12-04 02:56:27.955558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:27.960109"], ["updated_at", "2018-12-04 02:56:27.960109"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:56:27 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:27.966537"], ["last_sign_in_at", "2018-12-04 02:56:27.966537"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:27.967923"], ["id", 2560]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2236", "user_id"=>"2560"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2236], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2560], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2560], ["room_id", 2236], ["created_at", "2018-12-04 02:56:27.982184"], ["updated_at", "2018-12-04 02:56:27.982184"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:56:27 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2236", "user_id"=>"2560"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2560], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2236], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2560], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2560], ["room_id", 2236], ["created_at", "2018-12-04 02:56:27.999316"], ["updated_at", "2018-12-04 02:56:27.999316"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.7ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2236], ["user_id", 2560], ["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AIuujj.qtg7TLVJPk5T4zuT9TVOmkiwT1sx9dzptVov64AvocZ1g."], ["created_at", "2018-12-04 02:56:28.014303"], ["updated_at", "2018-12-04 02:56:28.014303"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:28.018901"], ["updated_at", "2018-12-04 02:56:28.018901"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.024787"], ["last_sign_in_at", "2018-12-04 02:56:28.024787"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.025850"], ["id", 2561]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2237", "user_id"=>"2561"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2237], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2561], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2561], ["room_id", 2237], ["created_at", "2018-12-04 02:56:28.040664"], ["updated_at", "2018-12-04 02:56:28.040664"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 2.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:56:28 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2237", "user_id"=>"2561"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2561], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2237], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2561], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2561], ["room_id", 2237], ["created_at", "2018-12-04 02:56:28.057390"], ["updated_at", "2018-12-04 02:56:28.057390"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.8ms)

Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2237], ["user_id", 2561], ["status", 1], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5GTJExX6l/IjEyFgthX5wOr8P3FOMctsnOaQroexG.cL19n5L5zuq"], ["created_at", "2018-12-04 02:56:28.071670"], ["updated_at", "2018-12-04 02:56:28.071670"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:28.075750"], ["updated_at", "2018-12-04 02:56:28.075750"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.080168"], ["last_sign_in_at", "2018-12-04 02:56:28.080168"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.081062"], ["id", 2562]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2238"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2238], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cKCJW/JtKv2kL4R5Zvc.9.q.BZVG92iUQjhvV.LttYBD4oaJJt.zW"], ["created_at", "2018-12-04 02:56:28.097001"], ["updated_at", "2018-12-04 02:56:28.097001"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:28.101436"], ["updated_at", "2018-12-04 02:56:28.101436"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.106141"], ["last_sign_in_at", "2018-12-04 02:56:28.106141"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.107099"], ["id", 2563]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2239"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bYj.DqQ4s57Q.4lUFVJdu.xTCU9riZ7Fk.EczC6A0H1IxgMhDPeGq"], ["created_at", "2018-12-04 02:56:28.123304"], ["updated_at", "2018-12-04 02:56:28.123304"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:28.127285"], ["updated_at", "2018-12-04 02:56:28.127285"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2240], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2564], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2564], ["room_id", 2240], ["created_at", "2018-12-04 02:56:28.135032"], ["updated_at", "2018-12-04 02:56:28.135032"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2240” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.139417"], ["last_sign_in_at", "2018-12-04 02:56:28.139417"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.140462"], ["id", 2564]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2240"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2240], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2240')
Rendered appointments/show.html.erb within layouts/application (13.2ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 232ms (Views: 227.0ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$987wYylOAzmScEUimwP7b.rWoZe93l61gFabq3fop.YsIYBQj73T2"], ["created_at", "2018-12-04 02:56:28.386933"], ["updated_at", "2018-12-04 02:56:28.386933"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:28.391936"], ["updated_at", "2018-12-04 02:56:28.391936"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2241], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2565], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2565], ["room_id", 2241], ["created_at", "2018-12-04 02:56:28.400343"], ["updated_at", "2018-12-04 02:56:28.400343"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2353/edit” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.405010"], ["last_sign_in_at", "2018-12-04 02:56:28.405010"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.406224"], ["id", 2565]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2353"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2353], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 9.5ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$BwNlh7LgQ8AMsLz3mwsVX.YoJgsmlYJypCL6ZD4/YWYvyGOk6LK9C"], ["created_at", "2018-12-04 02:56:28.435326"], ["updated_at", "2018-12-04 02:56:28.435326"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.440439"], ["last_sign_in_at", "2018-12-04 02:56:28.440439"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.441486"], ["id", 2566]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9BaNnh6kiV6FWxtGphsf2.1ZDETIOBj4rmxaDQn/1RJx4xT3SD/Ni"], ["created_at", "2018-12-04 02:56:28.468538"], ["updated_at", "2018-12-04 02:56:28.468538"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:28.473538"], ["updated_at", "2018-12-04 02:56:28.473538"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2242], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2567], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2567], ["room_id", 2242], ["created_at", "2018-12-04 02:56:28.481992"], ["updated_at", "2018-12-04 02:56:28.481992"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2242], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2567], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2567], ["room_id", 2242], ["created_at", "2018-12-04 02:56:28.490581"], ["updated_at", "2018-12-04 02:56:28.490581"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.495031"], ["last_sign_in_at", "2018-12-04 02:56:28.495031"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.496103"], ["id", 2567]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2567]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.1ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 21ms (Views: 10.7ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sR57/SyFtimH8SfUHcVp/un/LmZcK1AD6zPDpo0tYJWy63tpD3czW"], ["created_at", "2018-12-04 02:56:28.532170"], ["updated_at", "2018-12-04 02:56:28.532170"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:28.537177"], ["updated_at", "2018-12-04 02:56:28.537177"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2243], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2568], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2568], ["room_id", 2243], ["created_at", "2018-12-04 02:56:28.545740"], ["updated_at", "2018-12-04 02:56:28.545740"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2243], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2568], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2568], ["room_id", 2243], ["created_at", "2018-12-04 02:56:28.555179"], ["updated_at", "2018-12-04 02:56:28.555179"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.559489"], ["last_sign_in_at", "2018-12-04 02:56:28.559489"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.560540"], ["id", 2568]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2568]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$awFvXLakhlAXGJh1n6yxxepsJABwH5XhsYy8cSZikqDw96jtX0zpC"], ["created_at", "2018-12-04 02:56:28.585192"], ["updated_at", "2018-12-04 02:56:28.585192"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:28.589608"], ["updated_at", "2018-12-04 02:56:28.589608"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2244], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2569], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2569], ["room_id", 2244], ["created_at", "2018-12-04 02:56:28.597775"], ["updated_at", "2018-12-04 02:56:28.597775"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2358” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.602189"], ["last_sign_in_at", "2018-12-04 02:56:28.602189"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.603204"], ["id", 2569]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2358"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2358], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2358]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6fBPI7zHtzpnVr9DQiqFkuz2qGjk2pu9HNK5k.y8k7jywE2qKyQP6"], ["created_at", "2018-12-04 02:56:28.624491"], ["updated_at", "2018-12-04 02:56:28.624491"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:28.628767"], ["updated_at", "2018-12-04 02:56:28.628767"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RTRk1RVZdfgQGDf.zKlqtem21ePzswlIcvLffjReJfuSjXbbK5fgK"], ["created_at", "2018-12-04 02:56:28.636156"], ["updated_at", "2018-12-04 02:56:28.636156"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2245], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2571], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2571], ["room_id", 2245], ["created_at", "2018-12-04 02:56:28.648256"], ["updated_at", "2018-12-04 02:56:28.648256"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2359” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.653446"], ["last_sign_in_at", "2018-12-04 02:56:28.653446"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.654458"], ["id", 2570]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2359"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2359], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2245], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2571], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.8ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m6r8OHAgEbhD.Msx5NApf.FrCo/MnLLwHjdpcwZUHvGrMy1fbLtAe"], ["created_at", "2018-12-04 02:56:28.682902"], ["updated_at", "2018-12-04 02:56:28.682902"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:28.687928"], ["updated_at", "2018-12-04 02:56:28.687928"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SDkV00MtyagqHhII1RYPIOXX3Zg6tYHUeQ7B5nRpGYEYc5/MmnfZ2"], ["created_at", "2018-12-04 02:56:28.695483"], ["updated_at", "2018-12-04 02:56:28.695483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2246], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2573], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2573], ["room_id", 2246], ["created_at", "2018-12-04 02:56:28.703981"], ["updated_at", "2018-12-04 02:56:28.703981"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2360” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.709069"], ["last_sign_in_at", "2018-12-04 02:56:28.709069"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.710131"], ["id", 2572]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2360"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2360], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2246], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2573], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$26Ud.Nwz0NNxLrMsaWHSRe8m1ygqltqnvQ.J1eqRFW6WuHlEOG15C"], ["created_at", "2018-12-04 02:56:28.732773"], ["updated_at", "2018-12-04 02:56:28.732773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:28.737326"], ["updated_at", "2018-12-04 02:56:28.737326"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$l0eoKWlZCOZo5M18EXf4i.MwxjFzFjApgTgoDAMLglXQIKAEqueM."], ["created_at", "2018-12-04 02:56:28.744600"], ["updated_at", "2018-12-04 02:56:28.744600"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2247], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2575], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2575], ["room_id", 2247], ["created_at", "2018-12-04 02:56:28.752666"], ["updated_at", "2018-12-04 02:56:28.752666"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2361” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.757957"], ["last_sign_in_at", "2018-12-04 02:56:28.757957"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.758954"], ["id", 2574]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2361"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2361], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2247], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2575], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-04 02:56:28.769907"], ["id", 2361]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 10ms (ActiveRecord: 2.1ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rfJ0.61iMAUkjy3ypSeEGefrp.IDKhtx9prfHSUBAZdtQPFDHLnvW"], ["created_at", "2018-12-04 02:56:28.783307"], ["updated_at", "2018-12-04 02:56:28.783307"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:28.787838"], ["updated_at", "2018-12-04 02:56:28.787838"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OW4ZiQtoazNtEMQe990xJOiHt8pSNyW1qwRaulKrV/BBuRmeHJ6km"], ["created_at", "2018-12-04 02:56:28.794837"], ["updated_at", "2018-12-04 02:56:28.794837"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2248], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2577], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2577], ["room_id", 2248], ["created_at", "2018-12-04 02:56:28.802423"], ["updated_at", "2018-12-04 02:56:28.802423"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 02:56:28.806083"], ["id", 2362]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2248], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2577], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2577], ["room_id", 2248], ["created_at", "2018-12-04 02:56:28.813035"], ["updated_at", "2018-12-04 02:56:28.813035"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 02:56:28.816494"], ["id", 2363]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.820212"], ["last_sign_in_at", "2018-12-04 02:56:28.820212"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.821065"], ["id", 2576]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2577], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2248], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2577], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2248], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.0ms)
Rendered layouts/_header-admin.html.erb (2.7ms)

Completed 200 OK in 18ms (Views: 13.1ms | ActiveRecord: 2.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yczhiGD9N1lpzbgtSjVUN..kQcXO58R/eWmW9JLSIvsmwyNS.89.W"], ["created_at", "2018-12-04 02:56:28.851931"], ["updated_at", "2018-12-04 02:56:28.851931"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:28.855940"], ["updated_at", "2018-12-04 02:56:28.855940"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rsDI2jjX/r/PPRcllyLQROf5hmEjzWkw7Lp0yxeCaILAo6W1NJpKi"], ["created_at", "2018-12-04 02:56:28.863231"], ["updated_at", "2018-12-04 02:56:28.863231"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2249], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2579], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2579], ["room_id", 2249], ["created_at", "2018-12-04 02:56:28.870887"], ["updated_at", "2018-12-04 02:56:28.870887"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 02:56:28.874836"], ["id", 2364]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2249], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2579], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2579], ["room_id", 2249], ["created_at", "2018-12-04 02:56:28.881971"], ["updated_at", "2018-12-04 02:56:28.881971"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 02:56:28.885581"], ["id", 2365]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.889334"], ["last_sign_in_at", "2018-12-04 02:56:28.889334"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.890201"], ["id", 2578]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2579], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2249], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2579], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2249], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.1ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 14ms (Views: 10.5ms | ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L9t9Tn5JRUAtysLjnKjAju3DMzzUjR7umVFt4Fz9bv9f2WVPLO0tS"], ["created_at", "2018-12-04 02:56:28.919669"], ["updated_at", "2018-12-04 02:56:28.919669"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.923897"], ["last_sign_in_at", "2018-12-04 02:56:28.923897"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.924862"], ["id", 2580]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (5.9ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5wHQXshWpUhYujpoAQ9aNuOuJZvwHk4QdH59xwU.ApD/uTe4b1vnK"], ["created_at", "2018-12-04 02:56:28.953807"], ["updated_at", "2018-12-04 02:56:28.953807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.957731"], ["last_sign_in_at", "2018-12-04 02:56:28.957731"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.958868"], ["id", 2581]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C.9vI9YS2AAWi6yeIKVeheoAkS5HK.shTfp8bxXTdQ5KA65CZiEgq"], ["created_at", "2018-12-04 02:56:28.977684"], ["updated_at", "2018-12-04 02:56:28.977684"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 00:56:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:28.983336"], ["last_sign_in_at", "2018-12-04 02:56:28.983336"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:28.984524"], ["id", 2582]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Fo0FdpqFpTM0VTMj1SxEG.RhylwZrNTUzZmK9fDfWZUYE/NC3a4/e"], ["created_at", "2018-12-04 02:56:29.010094"], ["updated_at", "2018-12-04 02:56:29.010094"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.014459"], ["last_sign_in_at", "2018-12-04 02:56:29.014459"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.015484"], ["id", 2583]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 00:56:29 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$X2ZAhaQhBG3KQBL8H0Z0ueBE/EiELJK2ALwGcWw4fFbDjx7gCEC.C"], ["created_at", "2018-12-04 02:56:29.048197"], ["updated_at", "2018-12-04 02:56:29.048197"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.052756"], ["updated_at", "2018-12-04 02:56:29.052756"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2250” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.056908"], ["last_sign_in_at", "2018-12-04 02:56:29.056908"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.057986"], ["id", 2584]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2250"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2250], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fGknEdPpsWy2ndQ56RSV5.TcFf1/BatS3bDNvse6iS3K.MbpsG.1m"], ["created_at", "2018-12-04 02:56:29.079881"], ["updated_at", "2018-12-04 02:56:29.079881"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.084188"], ["updated_at", "2018-12-04 02:56:29.084188"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2251” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.088300"], ["last_sign_in_at", "2018-12-04 02:56:29.088300"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.089340"], ["id", 2585]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2251"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2251], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.106323"], ["updated_at", "2018-12-04 02:56:29.106323"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2252” for 127.0.0.1 at 2018-12-04 00:56:29 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2252"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9zWIpOmrs2GVFM/SdaKuYOGyJBbE9Md3AJo72bvfmY44ctI07G4/O"], ["created_at", "2018-12-04 02:56:29.121841"], ["updated_at", "2018-12-04 02:56:29.121841"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.126271"], ["updated_at", "2018-12-04 02:56:29.126271"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2253” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.130133"], ["last_sign_in_at", "2018-12-04 02:56:29.130133"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.131129"], ["id", 2586]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2253"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.152373"], ["updated_at", "2018-12-04 02:56:29.152373"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2254” for 127.0.0.1 at 2018-12-04 00:56:29 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2254"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cAoe0313xye6Ij/gRtEwMeJqrm3nktCunm4b/NqjNCud33qUr/yCG"], ["created_at", "2018-12-04 02:56:29.168053"], ["updated_at", "2018-12-04 02:56:29.168053"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.172835"], ["updated_at", "2018-12-04 02:56:29.172835"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2255/edit” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.176987"], ["last_sign_in_at", "2018-12-04 02:56:29.176987"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.177958"], ["id", 2587]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2255"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2255], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$psZC8SqNWzknm3RtKQH2P.HmpbPwRq6bc7QXIaVPoJSL/kShZFJRy"], ["created_at", "2018-12-04 02:56:29.203570"], ["updated_at", "2018-12-04 02:56:29.203570"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.207697"], ["updated_at", "2018-12-04 02:56:29.207697"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2256/edit” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.211759"], ["last_sign_in_at", "2018-12-04 02:56:29.211759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.212824"], ["id", 2588]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2256"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2256], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.233130"], ["updated_at", "2018-12-04 02:56:29.233130"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2257” for 127.0.0.1 at 2018-12-04 00:56:29 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2257"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O4r3JZcARI5GJzGwMK//KuDdncscLdeBA9gYsTPxIefKnG7hm5OvG"], ["created_at", "2018-12-04 02:56:29.248991"], ["updated_at", "2018-12-04 02:56:29.248991"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.254347"], ["last_sign_in_at", "2018-12-04 02:56:29.254347"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.255388"], ["id", 2589]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.261956"], ["updated_at", "2018-12-04 02:56:29.261956"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J9FUfqHy93HXAHIAqgZid.XtlkjXpv2Ogy/QT9TU.fSbbsDTNlaSK"], ["created_at", "2018-12-04 02:56:29.277271"], ["updated_at", "2018-12-04 02:56:29.277271"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.282791"], ["last_sign_in_at", "2018-12-04 02:56:29.282791"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.283825"], ["id", 2590]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.290395"], ["updated_at", "2018-12-04 02:56:29.290395"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YjwSom9jRTbR.q7OsQV17Ox0.JYMkrvYoIZ4yNdkXvR0XlKnHbSJ2"], ["created_at", "2018-12-04 02:56:29.303763"], ["updated_at", "2018-12-04 02:56:29.303763"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.309476"], ["last_sign_in_at", "2018-12-04 02:56:29.309476"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.310553"], ["id", 2591]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WalAC6m77DeiMSBSkiCbGehx8hmN1pfpqBNB17LdzX0Z/5SYsiycK"], ["created_at", "2018-12-04 02:56:29.330472"], ["updated_at", "2018-12-04 02:56:29.330472"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.335952"], ["last_sign_in_at", "2018-12-04 02:56:29.335952"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.336945"], ["id", 2592]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1ZqT6tDGF8tOZsu3IZdrcO/vsiH.oHUKtf5fdUv1O7SlDZ2qS/WbO"], ["created_at", "2018-12-04 02:56:29.355907"], ["updated_at", "2018-12-04 02:56:29.355907"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.361406"], ["last_sign_in_at", "2018-12-04 02:56:29.361406"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.362543"], ["id", 2593]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rS4G2pt6KSVOilWhDpFkLugs5ORbnvQ0o2bYXDn0hLCz05de8p.Fa"], ["created_at", "2018-12-04 02:56:29.377790"], ["updated_at", "2018-12-04 02:56:29.377790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.381845"], ["updated_at", "2018-12-04 02:56:29.381845"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2260” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.386391"], ["last_sign_in_at", "2018-12-04 02:56:29.386391"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.387410"], ["id", 2594]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2260"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2260], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 02:56:29.395756"], ["id", 2260]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2260 Completed 302 Found in 7ms (ActiveRecord: 1.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YrRsuEw9b/eTELWxpPjsTuLpr9U0zeT9ViKTJKEbGfGNOBW5bsUeS"], ["created_at", "2018-12-04 02:56:29.409417"], ["updated_at", "2018-12-04 02:56:29.409417"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.413515"], ["updated_at", "2018-12-04 02:56:29.413515"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2261” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.418046"], ["last_sign_in_at", "2018-12-04 02:56:29.418046"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.419061"], ["id", 2595]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2261"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2261], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 02:56:29.427392"], ["id", 2261]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2261 Completed 302 Found in 7ms (ActiveRecord: 1.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$crNVzlP3Ykrif3s/Nk8eHOCOp9pFFM803WrF9EOadNL18PJc792b2"], ["created_at", "2018-12-04 02:56:29.441062"], ["updated_at", "2018-12-04 02:56:29.441062"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.445333"], ["updated_at", "2018-12-04 02:56:29.445333"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2262” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.450170"], ["last_sign_in_at", "2018-12-04 02:56:29.450170"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.451252"], ["id", 2596]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2262"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2262], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 1.2ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SayEnhpgXA9HnA6arxA4q.nQ.w2WwKzu2fFr68rc7AuqZ7v2FchJ2"], ["created_at", "2018-12-04 02:56:29.481753"], ["updated_at", "2018-12-04 02:56:29.481753"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.485965"], ["updated_at", "2018-12-04 02:56:29.485965"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2263” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.491823"], ["last_sign_in_at", "2018-12-04 02:56:29.491823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.492962"], ["id", 2597]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2263"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2263], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.6ms)
Rendered layouts/_header-admin.html.erb (2.1ms)

Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 1.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZW7MH4hnNpubGPk1cDg7EeZ2ARroPU2lig2GviG9VlzqPHKwerIMK"], ["created_at", "2018-12-04 02:56:29.525233"], ["updated_at", "2018-12-04 02:56:29.525233"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.531707"], ["last_sign_in_at", "2018-12-04 02:56:29.531707"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.532768"], ["id", 2598]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Fmx6GN/G80bBwEQrhEiSAO4P4eH9WQybxNXhVl5XGrEADVyd3Twr2"], ["created_at", "2018-12-04 02:56:29.549304"], ["updated_at", "2018-12-04 02:56:29.549304"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.554443"], ["updated_at", "2018-12-04 02:56:29.554443"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2264” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.559787"], ["last_sign_in_at", "2018-12-04 02:56:29.559787"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.560835"], ["id", 2599]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2264"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2264], ["LIMIT", 1]]
 (0.5ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2264]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 1.8ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AZn1X9y/XGf8jEzDIP5tOuEJzVXcIYehdpAIgKYOjMXFdPnXCfEjS"], ["created_at", "2018-12-04 02:56:29.589875"], ["updated_at", "2018-12-04 02:56:29.589875"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.594853"], ["updated_at", "2018-12-04 02:56:29.594853"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2265” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.598971"], ["last_sign_in_at", "2018-12-04 02:56:29.598971"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.600271"], ["id", 2600]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2265"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2265], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2265]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yOpR0FdRPe0OwtqRjfrXxOTlcFlZbZhf7qUpsmakdd5H.8m9E6luO"], ["created_at", "2018-12-04 02:56:29.621593"], ["updated_at", "2018-12-04 02:56:29.621593"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.626903"], ["updated_at", "2018-12-04 02:56:29.626903"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2266” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.630993"], ["last_sign_in_at", "2018-12-04 02:56:29.630993"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.632007"], ["id", 2601]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2266"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nu03VE6Mz4i.0GeHQcUxqea0oTmSBmzXUBgjgGLhrmQm1NwBrVkLG"], ["created_at", "2018-12-04 02:56:29.651590"], ["updated_at", "2018-12-04 02:56:29.651590"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.657006"], ["updated_at", "2018-12-04 02:56:29.657006"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2267” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.660891"], ["last_sign_in_at", "2018-12-04 02:56:29.660891"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.661869"], ["id", 2602]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2267"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$i74T4HaMUsecBlX.AhuALuiquPan0mjzyuDw7.cEg5cY7c4Bk4erm"], ["created_at", "2018-12-04 02:56:29.677870"], ["updated_at", "2018-12-04 02:56:29.677870"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.682536"], ["last_sign_in_at", "2018-12-04 02:56:29.682536"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.683611"], ["id", 2603]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D9Kbg0eOg0mRdJ1jDxKQHu6ZLJwbZUHKAsOcYc9dPjbODtDTyLmN6"], ["created_at", "2018-12-04 02:56:29.712516"], ["updated_at", "2018-12-04 02:56:29.712516"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.717123"], ["updated_at", "2018-12-04 02:56:29.717123"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.721600"], ["updated_at", "2018-12-04 02:56:29.721600"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.725425"], ["updated_at", "2018-12-04 02:56:29.725425"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2268], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2604], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2604], ["room_id", 2268], ["created_at", "2018-12-04 02:56:29.734077"], ["updated_at", "2018-12-04 02:56:29.734077"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.738996"], ["last_sign_in_at", "2018-12-04 02:56:29.738996"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.740091"], ["id", 2604]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (5.6ms)
Rendered layouts/_header-user.html.erb (3.2ms)

Completed 200 OK in 29ms (Views: 14.4ms | ActiveRecord: 1.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V0C9YSg3uTJ0H7jyYHuMgOsEJOh2LWj9obgpTR3BfgY9DZ6L0CAuK"], ["created_at", "2018-12-04 02:56:29.787499"], ["updated_at", "2018-12-04 02:56:29.787499"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.792219"], ["updated_at", "2018-12-04 02:56:29.792219"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.796269"], ["updated_at", "2018-12-04 02:56:29.796269"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:56:29.800228"], ["updated_at", "2018-12-04 02:56:29.800228"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2271], ["LIMIT", 1]]
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2605], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2605], ["room_id", 2271], ["created_at", "2018-12-04 02:56:29.811408"], ["updated_at", "2018-12-04 02:56:29.811408"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 00:56:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:56:29.818288"], ["last_sign_in_at", "2018-12-04 02:56:29.818288"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:56:29.820033"], ["id", 2605]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PJBej/WiTON2q0A1M5wo6OpYPoz5ank3fcFMZLXruG9vdcRzKvVl2"], ["created_at", "2018-12-04 02:58:45.726005"], ["updated_at", "2018-12-04 02:58:45.726005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$a3Mg/d2e4Bx1vClmdk8djOhcXKSJZR1fooKwcDBrGGuqE9x4oQh6q"], ["created_at", "2018-12-04 02:58:45.742495"], ["updated_at", "2018-12-04 02:58:45.742495"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:45.774312"], ["updated_at", "2018-12-04 02:58:45.774312"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2274], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2607], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2607], ["room_id", 2274], ["created_at", "2018-12-04 02:58:45.844256"], ["updated_at", "2018-12-04 02:58:45.844256"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2368"}
Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2368], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2274], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2607], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (2.9ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (1.2ms)

UserMailer#status_notification: processed outbound mail in 282.0ms Sent mail to 123@123.com (11.6ms) Date: Tue, 04 Dec 2018 00:58:46 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05ed6628798_26fa3c4f242444b@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05ed6626942_26fa3c4f24243bc";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05ed6626942_26fa3c4f24243bc Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05ed6626942_26fa3c4f24243bc Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05ed6626942_26fa3c4f24243bc–

Completed 302 Found in 309ms (ActiveRecord: 2.7ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$z1tZuPujUCZcH7uOg5k83uSD/LIRt1R73XHmrgqdOZ52E4trXx3Ai"], ["created_at", "2018-12-04 02:58:46.182714"], ["updated_at", "2018-12-04 02:58:46.182714"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xeXTfiwrB4bMDcn3LTBZ0uxMRB1Ef4NPw17uCvbJZgpkYjil99N9m"], ["created_at", "2018-12-04 02:58:46.193427"], ["updated_at", "2018-12-04 02:58:46.193427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:46.198991"], ["updated_at", "2018-12-04 02:58:46.198991"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2275], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2609], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2609], ["room_id", 2275], ["created_at", "2018-12-04 02:58:46.207801"], ["updated_at", "2018-12-04 02:58:46.207801"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2369"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2369], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2275], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2609], ["LIMIT", 1]]
SQL (0.8ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-04 02:58:46.219396"], ["id", 2369]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (6.0ms) Date: Tue, 04 Dec 2018 00:58:46 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05ed663821c_26fa3c4f24246df@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05ed66372ab_26fa3c4f2424599";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05ed66372ab_26fa3c4f2424599 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05ed66372ab_26fa3c4f2424599 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05ed66372ab_26fa3c4f2424599–

Completed 302 Found in 22ms (ActiveRecord: 3.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (9.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p5qXXr43HQf5PqL9veLHW.88BBGgWVutXIe28z4V72ugDCIGfI9jO"], ["created_at", "2018-12-04 02:58:46.243257"], ["updated_at", "2018-12-04 02:58:46.243257"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Un5as7COZrMJvBtaEefKPOABr/NYvNV65oksQiw5lvOwZVYyhKFMC"], ["created_at", "2018-12-04 02:58:46.263241"], ["updated_at", "2018-12-04 02:58:46.263241"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:46.268169"], ["updated_at", "2018-12-04 02:58:46.268169"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2276], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2611], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2611], ["room_id", 2276], ["created_at", "2018-12-04 02:58:46.276270"], ["updated_at", "2018-12-04 02:58:46.276270"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PVVjOmp3MkloodFoe3PnzuvdGPcIu9IKjbh82l7ViM3OSE0QAQWFC"], ["created_at", "2018-12-04 02:58:46.292764"], ["updated_at", "2018-12-04 02:58:46.292764"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MO22Tdez/LbuzBCMjBBi6uvVBwItj8Mh5FBKisEUD1w7x7FVo43mS"], ["created_at", "2018-12-04 02:58:46.301496"], ["updated_at", "2018-12-04 02:58:46.301496"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:46.305634"], ["updated_at", "2018-12-04 02:58:46.305634"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2277], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2613], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2613], ["room_id", 2277], ["created_at", "2018-12-04 02:58:46.313787"], ["updated_at", "2018-12-04 02:58:46.313787"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2371], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$QUiTGtGdVVHEgQnCRki8eeSdlnhQqyCCZTfNelSZ7iDLYT2OCOtPm"], ["created_at", "2018-12-04 02:58:46.327804"], ["updated_at", "2018-12-04 02:58:46.327804"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2614"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "KBje2rv982J6qL5SVfh07g"], ["updated_at", "2018-12-04 02:58:46.337481"], ["id", 2614]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 02:58:46.341217"], ["reset_sent_at", "2018-12-04 02:58:46.340531"], ["id", 2614]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)

UserMailer#password_reset: processed outbound mail in 10.1ms Sent mail to teste@unb.com.br (6.0ms) Date: Tue, 04 Dec 2018 00:58:46 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05ed6657080_26fa3c4f24249cf@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05ed66560db_26fa3c4f24248b9";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05ed66560db_26fa3c4f24248b9 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/KBje2rv982J6qL5SVfh07g/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05ed66560db_26fa3c4f24248b9 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/KBje2rv982J6qL5SVfh07g/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05ed66560db_26fa3c4f24248b9–

Redirected to test.host/login Completed 302 Found in 27ms (ActiveRecord: 2.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$jaBlZcc8MiC9tz7Ol82Rlu5wWDSnKcdE3DjqlyTYOwp1Op5RJrNrW"], ["created_at", "2018-12-04 02:58:46.368627"], ["updated_at", "2018-12-04 02:58:46.368627"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.7ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$5tJ2PvpsOr9nVZcdTHnoJ.mlvJziAuSQIi1ZiesAq2YjUcR/cTXxm"], ["created_at", "2018-12-04 02:58:46.386878"], ["updated_at", "2018-12-04 02:58:46.386878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2616"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$qGifAeRh4ir/U/89mqAzWurOqMtGgu8qkdSg2BhCM6O/H4Kk7t4Ha"], ["updated_at", "2018-12-04 02:58:46.396569"], ["id", 2616]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 8ms (ActiveRecord: 1.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$TQtJ4BsWSgVmvBuSj28AFOlq1gS3L8Pnq/2KdmnwnYLkunyf83pF2"], ["created_at", "2018-12-04 02:58:46.408129"], ["updated_at", "2018-12-04 02:58:46.408129"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2617"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$fMntNUVrlEq.F.3KPkp/3uNbNPXZW7b8VLNbTSmqQ.n2Yd5/mbLY2"], ["created_at", "2018-12-04 02:58:46.426999"], ["updated_at", "2018-12-04 02:58:46.426999"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2618"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 18ms (Views: 2.0ms | ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$UJUqHZ7tP8a60rI8x0kq/OVgbRqe1T9Dm8AVjMDOxF9e4wqf/gYEW"], ["created_at", "2018-12-04 02:58:46.457432"], ["updated_at", "2018-12-04 02:58:46.457432"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2619"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$YwjZdYEebyCVlW3IJh1jgen0UJ.4AuQe.nMTlszItls3ERzWLndbC"], ["created_at", "2018-12-04 02:58:46.476560"], ["updated_at", "2018-12-04 02:58:46.476560"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2620"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TLJGxrRnSpItsKiyx8.BFe5ezQH5JP0HxUMomx0ZLSMS2VnB6sbqW"], ["created_at", "2018-12-04 02:58:46.493958"], ["updated_at", "2018-12-04 02:58:46.493958"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DbrRfVxsz9S07BT5qD4W0eYlXaqkuJV3kEgUKxstwcFJvR7w2oWY."], ["created_at", "2018-12-04 02:58:46.510215"], ["updated_at", "2018-12-04 02:58:46.510215"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.5ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UTRP0BywINQ3LZsf0VHJLuwKh02Il72K6pgze0RtBUTvqVPxFvH2K"], ["created_at", "2018-12-04 02:58:46.527399"], ["updated_at", "2018-12-04 02:58:46.527399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:46.531014"], ["updated_at", "2018-12-04 02:58:46.531014"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2278], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2623], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2623], ["room_id", 2278], ["created_at", "2018-12-04 02:58:46.537912"], ["updated_at", "2018-12-04 02:58:46.537912"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mWSoKRJFT4nXwEJcINUd.OtXKAY0j3QCB.BQr/ljekTC.5GJyFB1i"], ["created_at", "2018-12-04 02:58:46.554288"], ["updated_at", "2018-12-04 02:58:46.554288"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:46.558107"], ["updated_at", "2018-12-04 02:58:46.558107"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2279], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2624], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2624], ["room_id", 2279], ["created_at", "2018-12-04 02:58:46.565232"], ["updated_at", "2018-12-04 02:58:46.565232"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$clz5DV04UuOKi36sytkIf.PbRsyMrSduQ4AZKnCm3yvgvaG2A12da"], ["created_at", "2018-12-04 02:58:46.617751"], ["updated_at", "2018-12-04 02:58:46.617751"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:46.622079"], ["updated_at", "2018-12-04 02:58:46.622079"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:58:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:46.634822"], ["last_sign_in_at", "2018-12-04 02:58:46.634822"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:46.635906"], ["id", 2625]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2280"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2280], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2625], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2625], ["room_id", 2280], ["created_at", "2018-12-04 02:58:46.652959"], ["updated_at", "2018-12-04 02:58:46.652959"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2280], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5Ui3uwnX8rkd8iIqIt04WuMSGFAWzQs26KDNJylJwcvdkKoj7AjF2"], ["created_at", "2018-12-04 02:58:46.667734"], ["updated_at", "2018-12-04 02:58:46.667734"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:46.671691"], ["updated_at", "2018-12-04 02:58:46.671691"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:58:46 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:46.676530"], ["last_sign_in_at", "2018-12-04 02:58:46.676530"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:46.677495"], ["id", 2626]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2281"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2281], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2626], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2626], ["room_id", 2281], ["created_at", "2018-12-04 02:58:46.688202"], ["updated_at", "2018-12-04 02:58:46.688202"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Fkhs0ghEez4/gnpVpLfl7OmK9X53Xp/bmff/nvYMcJBLDqfebJQGW"], ["created_at", "2018-12-04 02:58:46.700692"], ["updated_at", "2018-12-04 02:58:46.700692"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:46.704834"], ["updated_at", "2018-12-04 02:58:46.704834"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:58:46 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:46.710091"], ["last_sign_in_at", "2018-12-04 02:58:46.710091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:46.711112"], ["id", 2627]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2282", "user_id"=>"2627"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2282], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2627], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2627], ["room_id", 2282], ["created_at", "2018-12-04 02:58:46.722818"], ["updated_at", "2018-12-04 02:58:46.722818"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.5ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:58:46 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2282", "user_id"=>"2627"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2627], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2282], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2627], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2627], ["room_id", 2282], ["created_at", "2018-12-04 02:58:46.742269"], ["updated_at", "2018-12-04 02:58:46.742269"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 4.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0cdSnl2.qQDgC4a96GOrxuzBlWm.qxsQNlj8rZbDlGIv5yJzOPkji"], ["created_at", "2018-12-04 02:58:46.755597"], ["updated_at", "2018-12-04 02:58:46.755597"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:46.759975"], ["updated_at", "2018-12-04 02:58:46.759975"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:58:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:46.765512"], ["last_sign_in_at", "2018-12-04 02:58:46.765512"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:46.766640"], ["id", 2628]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2283", "user_id"=>"2628"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2283], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2628], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2628], ["room_id", 2283], ["created_at", "2018-12-04 02:58:46.778424"], ["updated_at", "2018-12-04 02:58:46.778424"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:58:46 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2283", "user_id"=>"2628"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2628], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2283], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2628], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2628], ["room_id", 2283], ["created_at", "2018-12-04 02:58:46.794849"], ["updated_at", "2018-12-04 02:58:46.794849"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.7ms)

Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2283], ["user_id", 2628], ["status", 2], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dZ4GvM/QIx1pUWuTsSOmueFXe17ewLLw9HzRW1RITUoFgU55DPjRK"], ["created_at", "2018-12-04 02:58:46.810651"], ["updated_at", "2018-12-04 02:58:46.810651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:46.815212"], ["updated_at", "2018-12-04 02:58:46.815212"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:58:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:46.821102"], ["last_sign_in_at", "2018-12-04 02:58:46.821102"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:46.822192"], ["id", 2629]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2284", "user_id"=>"2629"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2284], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2629], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2629], ["room_id", 2284], ["created_at", "2018-12-04 02:58:46.833995"], ["updated_at", "2018-12-04 02:58:46.833995"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.4ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:58:46 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2284", "user_id"=>"2629"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2629], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2284], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2629], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2629], ["room_id", 2284], ["created_at", "2018-12-04 02:58:46.850401"], ["updated_at", "2018-12-04 02:58:46.850401"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.7ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2284], ["user_id", 2629], ["status", 1], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nYFxMt5XXaNmTYPMuRXdveZdQc6edlZvAfBNmW9V9rgPx.3WTx7B2"], ["created_at", "2018-12-04 02:58:46.865061"], ["updated_at", "2018-12-04 02:58:46.865061"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:46.869746"], ["updated_at", "2018-12-04 02:58:46.869746"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:58:46 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:46.874618"], ["last_sign_in_at", "2018-12-04 02:58:46.874618"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:46.875942"], ["id", 2630]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2285"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2285], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OxVKwH1KYIYLkTeXBleQhuXNhUH3XZRxgHVTZg0YNuPIBVADAO8DG"], ["created_at", "2018-12-04 02:58:46.893967"], ["updated_at", "2018-12-04 02:58:46.893967"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:46.898803"], ["updated_at", "2018-12-04 02:58:46.898803"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 00:58:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:46.903702"], ["last_sign_in_at", "2018-12-04 02:58:46.903702"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:46.904717"], ["id", 2631]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2286"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$V.zM1C63IsuXjsUmi62J5uu26QEqWr0kfqHcYY1FYbh3HWGpm7/Ti"], ["created_at", "2018-12-04 02:58:46.924364"], ["updated_at", "2018-12-04 02:58:46.924364"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:46.928786"], ["updated_at", "2018-12-04 02:58:46.928786"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2287], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2632], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2632], ["room_id", 2287], ["created_at", "2018-12-04 02:58:46.936034"], ["updated_at", "2018-12-04 02:58:46.936034"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2287” for 127.0.0.1 at 2018-12-04 00:58:46 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:46.940805"], ["last_sign_in_at", "2018-12-04 02:58:46.940805"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:46.942317"], ["id", 2632]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2287"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2287], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2287')
Rendered appointments/show.html.erb within layouts/application (12.7ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 220ms (Views: 215.0ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.A81.VF.34w96o4G4OgUeuuKQPHRkLVpC.bMNqpjEt2Rzop.VUxai"], ["created_at", "2018-12-04 02:58:47.179076"], ["updated_at", "2018-12-04 02:58:47.179076"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.183748"], ["updated_at", "2018-12-04 02:58:47.183748"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2288], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2633], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2633], ["room_id", 2288], ["created_at", "2018-12-04 02:58:47.192704"], ["updated_at", "2018-12-04 02:58:47.192704"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2288], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2633], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2633], ["room_id", 2288], ["created_at", "2018-12-04 02:58:47.201937"], ["updated_at", "2018-12-04 02:58:47.201937"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.206402"], ["last_sign_in_at", "2018-12-04 02:58:47.206402"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.207615"], ["id", 2633]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2633]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.7ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 20ms (Views: 10.0ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$coSx4SNn/Iq1ejiIn6oUZOrDdFrZ3H75IMQIKuaaVXGrDR6nP6wZ6"], ["created_at", "2018-12-04 02:58:47.247074"], ["updated_at", "2018-12-04 02:58:47.247074"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.252189"], ["updated_at", "2018-12-04 02:58:47.252189"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2289], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2634], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2634], ["room_id", 2289], ["created_at", "2018-12-04 02:58:47.260713"], ["updated_at", "2018-12-04 02:58:47.260713"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2289], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2634], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2634], ["room_id", 2289], ["created_at", "2018-12-04 02:58:47.271495"], ["updated_at", "2018-12-04 02:58:47.271495"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.276190"], ["last_sign_in_at", "2018-12-04 02:58:47.276190"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.277314"], ["id", 2634]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2634]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$y2/.lLdnK93w82d1yN9HUu3RDyYDB2V2CuCU8Gx7t9pSUmGmTd8Ru"], ["created_at", "2018-12-04 02:58:47.301322"], ["updated_at", "2018-12-04 02:58:47.301322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.306041"], ["updated_at", "2018-12-04 02:58:47.306041"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2290], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2635], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2635], ["room_id", 2290], ["created_at", "2018-12-04 02:58:47.314534"], ["updated_at", "2018-12-04 02:58:47.314534"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2387” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.318938"], ["last_sign_in_at", "2018-12-04 02:58:47.318938"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.320106"], ["id", 2635]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2387"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2387], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2387]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.4ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2jGdQ/LK4dopc3ac1V1i3ObB2NA9EDhHN9ljo6/ntXOJw4qbvK13."], ["created_at", "2018-12-04 02:58:47.343519"], ["updated_at", "2018-12-04 02:58:47.343519"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.349306"], ["updated_at", "2018-12-04 02:58:47.349306"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cvV4QZMvOo/uK9xbwWIukOlPwXKRxX57Xar0KNISA0RIllk6ij7YG"], ["created_at", "2018-12-04 02:58:47.356983"], ["updated_at", "2018-12-04 02:58:47.356983"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2291], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2637], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2637], ["room_id", 2291], ["created_at", "2018-12-04 02:58:47.364414"], ["updated_at", "2018-12-04 02:58:47.364414"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 02:58:47.367897"], ["id", 2388]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2291], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2637], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2637], ["room_id", 2291], ["created_at", "2018-12-04 02:58:47.374635"], ["updated_at", "2018-12-04 02:58:47.374635"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 02:58:47.377976"], ["id", 2389]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.381531"], ["last_sign_in_at", "2018-12-04 02:58:47.381531"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.382448"], ["id", 2636]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2637], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2291], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2637], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2291], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.8ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 17ms (Views: 13.2ms | ActiveRecord: 1.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LMdRoNEX6bXprcmhrkN3E.WuoxEahChUaJp.O2j0jW7ybJYM4ndzO"], ["created_at", "2018-12-04 02:58:47.416426"], ["updated_at", "2018-12-04 02:58:47.416426"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.421678"], ["updated_at", "2018-12-04 02:58:47.421678"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Zvf9r9057Nbo6cnIQ/kV1O13HGh30.1FCq5iANoysXYYq/oXWOkju"], ["created_at", "2018-12-04 02:58:47.428726"], ["updated_at", "2018-12-04 02:58:47.428726"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2292], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2639], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2639], ["room_id", 2292], ["created_at", "2018-12-04 02:58:47.437006"], ["updated_at", "2018-12-04 02:58:47.437006"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 02:58:47.440748"], ["id", 2390]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2292], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2639], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2639], ["room_id", 2292], ["created_at", "2018-12-04 02:58:47.448285"], ["updated_at", "2018-12-04 02:58:47.448285"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 02:58:47.452207"], ["id", 2391]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.456097"], ["last_sign_in_at", "2018-12-04 02:58:47.456097"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.457085"], ["id", 2638]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2639], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2292], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2639], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2292], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.6ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 2.1ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TXVJFpNJ75HxJa3C3/AvjeouKomfVTTUkqOaAGblmzYm6YjHLj2UK"], ["created_at", "2018-12-04 02:58:47.488423"], ["updated_at", "2018-12-04 02:58:47.488423"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.493029"], ["last_sign_in_at", "2018-12-04 02:58:47.493029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.494097"], ["id", 2640]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.5ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 15ms (Views: 13.0ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7.riRz0MAYklHnN7OarkKOeAA7ZSaK0utcYOm3ahV8F4mJDS2O2R."], ["created_at", "2018-12-04 02:58:47.525655"], ["updated_at", "2018-12-04 02:58:47.525655"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.529983"], ["last_sign_in_at", "2018-12-04 02:58:47.529983"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.531009"], ["id", 2641]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qtcjkLKzaorlTkciQOjdhO3X6iy3UV4/xQmrFmAW0zDduRcJojA8O"], ["created_at", "2018-12-04 02:58:47.546045"], ["updated_at", "2018-12-04 02:58:47.546045"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.550396"], ["last_sign_in_at", "2018-12-04 02:58:47.550396"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.551633"], ["id", 2642]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (5.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mgNdFSe2QH.VYqHRNTNA0uIbcL0drpv5IT6wxMV0y/Z46ZlHuIx5e"], ["created_at", "2018-12-04 02:58:47.579502"], ["updated_at", "2018-12-04 02:58:47.579502"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.584160"], ["last_sign_in_at", "2018-12-04 02:58:47.584160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.585238"], ["id", 2643]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 00:58:47 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2e5J8h32mpIJwpNMwEbAWujJ92kpE2QPCPYRgSnuCb35Nw.BlbXfm"], ["created_at", "2018-12-04 02:58:47.621268"], ["updated_at", "2018-12-04 02:58:47.621268"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.626123"], ["updated_at", "2018-12-04 02:58:47.626123"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2293” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.630442"], ["last_sign_in_at", "2018-12-04 02:58:47.630442"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.631785"], ["id", 2644]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2293"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2293], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I.xwqDDfvYi1OEhfy8RfpuTtw3zHiNk00AGh/0BdtLSCBXEWCVxIC"], ["created_at", "2018-12-04 02:58:47.656221"], ["updated_at", "2018-12-04 02:58:47.656221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.660907"], ["updated_at", "2018-12-04 02:58:47.660907"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2294” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.665280"], ["last_sign_in_at", "2018-12-04 02:58:47.665280"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.666314"], ["id", 2645]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2294"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2294], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.685463"], ["updated_at", "2018-12-04 02:58:47.685463"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2295” for 127.0.0.1 at 2018-12-04 00:58:47 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2295"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zHSprjQt4B.pQLXJ4jum6eJ962GlKjyw/R2Lh56NQtLGfbOG7Lk4G"], ["created_at", "2018-12-04 02:58:47.701918"], ["updated_at", "2018-12-04 02:58:47.701918"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.706527"], ["updated_at", "2018-12-04 02:58:47.706527"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2296” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.710686"], ["last_sign_in_at", "2018-12-04 02:58:47.710686"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.711662"], ["id", 2646]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2296"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.739994"], ["updated_at", "2018-12-04 02:58:47.739994"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2297” for 127.0.0.1 at 2018-12-04 00:58:47 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2297"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (23.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IZ1sew.Bo7tfuPF8qgRwQuI9YvnSSgYnk6jtz31VLDpbjIt/bi0u2"], ["created_at", "2018-12-04 02:58:47.757308"], ["updated_at", "2018-12-04 02:58:47.757308"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.786313"], ["updated_at", "2018-12-04 02:58:47.786313"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2298/edit” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.791713"], ["last_sign_in_at", "2018-12-04 02:58:47.791713"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.793125"], ["id", 2647]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2298"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2298], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.5ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 13ms (Views: 10.8ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PZjvliD1pDXcgniNWnFE0eCW.DtGlKMivmtsX9GV.RRemDgb0Xo7e"], ["created_at", "2018-12-04 02:58:47.821188"], ["updated_at", "2018-12-04 02:58:47.821188"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.825647"], ["updated_at", "2018-12-04 02:58:47.825647"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2299/edit” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.830073"], ["last_sign_in_at", "2018-12-04 02:58:47.830073"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.831224"], ["id", 2648]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2299"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2299], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.852486"], ["updated_at", "2018-12-04 02:58:47.852486"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2300” for 127.0.0.1 at 2018-12-04 00:58:47 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2300"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rIXJRHJj/NJsNHByCGRKxOflhSvcPdYSjB7tJ5.DhyaOsxQJ1iKE."], ["created_at", "2018-12-04 02:58:47.868444"], ["updated_at", "2018-12-04 02:58:47.868444"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.873995"], ["last_sign_in_at", "2018-12-04 02:58:47.873995"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.875144"], ["id", 2649]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.881943"], ["updated_at", "2018-12-04 02:58:47.881943"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jx3DmESQm3iODYMTX8ctEu9yYtMGoOEMyCZ.3R9PCS9AODpMNLg6O"], ["created_at", "2018-12-04 02:58:47.897608"], ["updated_at", "2018-12-04 02:58:47.897608"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.904957"], ["last_sign_in_at", "2018-12-04 02:58:47.904957"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.906492"], ["id", 2650]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:47.913998"], ["updated_at", "2018-12-04 02:58:47.913998"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qbU0AnTYD9BxIiPqLf.yQ.K1hTWtMYqL6PrmZ2oqvRNS4vSzQ3mp6"], ["created_at", "2018-12-04 02:58:47.927668"], ["updated_at", "2018-12-04 02:58:47.927668"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.933383"], ["last_sign_in_at", "2018-12-04 02:58:47.933383"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.934468"], ["id", 2651]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.4ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m5N.K4rNItYQnvtt58AK3ObCu7bAkvVsuadmwrPCmTlUi/eL23.Vm"], ["created_at", "2018-12-04 02:58:47.955318"], ["updated_at", "2018-12-04 02:58:47.955318"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.961061"], ["last_sign_in_at", "2018-12-04 02:58:47.961061"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.962222"], ["id", 2652]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 0.7ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BXdXM2eE3CbRYZaubxqgEec/zVXSD1Ejtj4Nyd2Sj5Aaqcu6beaRS"], ["created_at", "2018-12-04 02:58:47.985827"], ["updated_at", "2018-12-04 02:58:47.985827"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:58:47 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:47.991090"], ["last_sign_in_at", "2018-12-04 02:58:47.991090"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:47.992226"], ["id", 2653]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QzlBElnrBO22Ibd4zQflWeIv9CpE.a3zD79zHoxQhhYJGSw/nca56"], ["created_at", "2018-12-04 02:58:48.008155"], ["updated_at", "2018-12-04 02:58:48.008155"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.012624"], ["updated_at", "2018-12-04 02:58:48.012624"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2303” for 127.0.0.1 at 2018-12-04 00:58:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:48.017616"], ["last_sign_in_at", "2018-12-04 02:58:48.017616"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:48.018860"], ["id", 2654]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2303"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2303], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 02:58:48.027452"], ["id", 2303]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2303 Completed 302 Found in 7ms (ActiveRecord: 1.8ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6mRCJQ85pyan7021YG82lOTwl885bWWXToTVDsOckGB3GoAEA7mwS"], ["created_at", "2018-12-04 02:58:48.043110"], ["updated_at", "2018-12-04 02:58:48.043110"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.047992"], ["updated_at", "2018-12-04 02:58:48.047992"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2304” for 127.0.0.1 at 2018-12-04 00:58:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:48.053552"], ["last_sign_in_at", "2018-12-04 02:58:48.053552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:48.054686"], ["id", 2655]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2304"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2304], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 02:58:48.063596"], ["id", 2304]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2304 Completed 302 Found in 7ms (ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oiWDR0ppZXBzfY1tJE88C.Q0xaGrEY94TOYBRnSgzW.UAOpib69Ky"], ["created_at", "2018-12-04 02:58:48.077609"], ["updated_at", "2018-12-04 02:58:48.077609"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.082765"], ["updated_at", "2018-12-04 02:58:48.082765"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2305” for 127.0.0.1 at 2018-12-04 00:58:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:48.088023"], ["last_sign_in_at", "2018-12-04 02:58:48.088023"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:48.089133"], ["id", 2656]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2305"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2305], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 1.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O.DEn08DS4pDrH0dz2NfnOI.4FVC3hf0X30KCkEL463Fgqfes6ZjK"], ["created_at", "2018-12-04 02:58:48.119685"], ["updated_at", "2018-12-04 02:58:48.119685"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.124190"], ["updated_at", "2018-12-04 02:58:48.124190"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2306” for 127.0.0.1 at 2018-12-04 00:58:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:48.129443"], ["last_sign_in_at", "2018-12-04 02:58:48.129443"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:48.130586"], ["id", 2657]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2306"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2306], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 15ms (Views: 9.6ms | ActiveRecord: 1.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TJ1dWgu9i7aoiONiSt61.u9He5WxrQTilMScWk6cKk7LC0eIUUWlq"], ["created_at", "2018-12-04 02:58:48.161520"], ["updated_at", "2018-12-04 02:58:48.161520"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 00:58:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:48.168087"], ["last_sign_in_at", "2018-12-04 02:58:48.168087"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:48.169133"], ["id", 2658]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BGkXr058magl0/ZvqcoXIOaep.w5IgANPsBdcDhcMf9aD6JpzcPPW"], ["created_at", "2018-12-04 02:58:48.185441"], ["updated_at", "2018-12-04 02:58:48.185441"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.189961"], ["updated_at", "2018-12-04 02:58:48.189961"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2307” for 127.0.0.1 at 2018-12-04 00:58:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:48.194710"], ["last_sign_in_at", "2018-12-04 02:58:48.194710"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:48.195833"], ["id", 2659]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2307"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2307], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2307]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Zipnkih6jm07BXEXFD7z1egjBIwSAmn71pR.UJgkfwIH70tcxVevK"], ["created_at", "2018-12-04 02:58:48.216915"], ["updated_at", "2018-12-04 02:58:48.216915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.221581"], ["updated_at", "2018-12-04 02:58:48.221581"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2308” for 127.0.0.1 at 2018-12-04 00:58:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:48.225854"], ["last_sign_in_at", "2018-12-04 02:58:48.225854"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:48.226974"], ["id", 2660]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2308"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2308], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2308]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bjGguWOwg51iwTg.dnnRduvSywFDeD6GnTN1d8t7T3ui72tWCE1.S"], ["created_at", "2018-12-04 02:58:48.250272"], ["updated_at", "2018-12-04 02:58:48.250272"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.255011"], ["updated_at", "2018-12-04 02:58:48.255011"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2309” for 127.0.0.1 at 2018-12-04 00:58:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:48.259670"], ["last_sign_in_at", "2018-12-04 02:58:48.259670"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:48.260761"], ["id", 2661]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2309"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cVBOeOGapCyd593lZ0ZsqOPN2OCFwNrbgXUL.U86lCRcPSOvMueQa"], ["created_at", "2018-12-04 02:58:48.277440"], ["updated_at", "2018-12-04 02:58:48.277440"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.282016"], ["updated_at", "2018-12-04 02:58:48.282016"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2310” for 127.0.0.1 at 2018-12-04 00:58:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:48.286065"], ["last_sign_in_at", "2018-12-04 02:58:48.286065"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:48.287299"], ["id", 2662]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2310"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6jn.8w9BYOmGs94dM1bxs..wtAKNrzaW5aS4HzP7F.Wp4J7f.0C.a"], ["created_at", "2018-12-04 02:58:48.304083"], ["updated_at", "2018-12-04 02:58:48.304083"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 00:58:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:48.308971"], ["last_sign_in_at", "2018-12-04 02:58:48.308971"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:48.309926"], ["id", 2663]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ncM16DNbMfBaJiLEOR7tKO9Wi8H16gp0OLGyEWJzJRaDjq.JgNx7."], ["created_at", "2018-12-04 02:58:48.338505"], ["updated_at", "2018-12-04 02:58:48.338505"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.342926"], ["updated_at", "2018-12-04 02:58:48.342926"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.346828"], ["updated_at", "2018-12-04 02:58:48.346828"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.350792"], ["updated_at", "2018-12-04 02:58:48.350792"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2311], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2664], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2664], ["room_id", 2311], ["created_at", "2018-12-04 02:58:48.359152"], ["updated_at", "2018-12-04 02:58:48.359152"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 00:58:48 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:48.363953"], ["last_sign_in_at", "2018-12-04 02:58:48.363953"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:48.365288"], ["id", 2664]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.1ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 22ms (Views: 8.1ms | ActiveRecord: 1.6ms)

Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Rxi3kMI0nRdYrB7M.0bbvuOYwKHOmp5XIkf8M2Flg307H7vCdxNJC"], ["created_at", "2018-12-04 02:58:48.405729"], ["updated_at", "2018-12-04 02:58:48.405729"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.410174"], ["updated_at", "2018-12-04 02:58:48.410174"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.414171"], ["updated_at", "2018-12-04 02:58:48.414171"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 02:58:48.417262"], ["updated_at", "2018-12-04 02:58:48.417262"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2314], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2665], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2665], ["room_id", 2314], ["created_at", "2018-12-04 02:58:48.425651"], ["updated_at", "2018-12-04 02:58:48.425651"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 00:58:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 02:58:48.430463"], ["last_sign_in_at", "2018-12-04 02:58:48.430463"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 02:58:48.431506"], ["id", 2665]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fVgnmFOw0LMmJ6//8AncXuJmrjgAS0sdzYreQtVkCrDALtxNmFaQu"], ["created_at", "2018-12-04 03:03:33.739299"], ["updated_at", "2018-12-04 03:03:33.739299"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.QmdTsfys5xIB16sn46po.DcAijegm3NTy4slpj6UUPSKSeuQSUKy"], ["created_at", "2018-12-04 03:03:33.748999"], ["updated_at", "2018-12-04 03:03:33.748999"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.5ms)  SAVEPOINT active_record_1
SQL (1.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:33.776566"], ["updated_at", "2018-12-04 03:03:33.776566"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2317], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2667], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2667], ["room_id", 2317], ["created_at", "2018-12-04 03:03:33.848714"], ["updated_at", "2018-12-04 03:03:33.848714"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2394"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2394], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2317], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2667], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (2.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (1.3ms)

UserMailer#status_notification: processed outbound mail in 296.8ms Sent mail to 123@123.com (11.3ms) Date: Tue, 04 Dec 2018 01:03:34 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05ee862d5fa_2889feaf24534f0@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05ee862b7fa_2889feaf24533f5";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05ee862b7fa_2889feaf24533f5 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05ee862b7fa_2889feaf24533f5 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05ee862b7fa_2889feaf24533f5–

Completed 302 Found in 323ms (ActiveRecord: 2.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KyoyA86DvCcTg/Pnf7qhs.0Qlyjo1z7xsf.cCuORF7e6s1jxh7vgS"], ["created_at", "2018-12-04 03:03:34.201791"], ["updated_at", "2018-12-04 03:03:34.201791"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lHhSbzaEhG8.znK6mTDMNOtreUgwZPGu5op8tH5kVdCx7ejok4FdC"], ["created_at", "2018-12-04 03:03:34.210043"], ["updated_at", "2018-12-04 03:03:34.210043"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:34.214184"], ["updated_at", "2018-12-04 03:03:34.214184"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2318], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2669], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2669], ["room_id", 2318], ["created_at", "2018-12-04 03:03:34.222401"], ["updated_at", "2018-12-04 03:03:34.222401"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2395"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2395], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2318], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2669], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-04 03:03:34.234254"], ["id", 2395]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms Sent mail to 123@123.com (5.8ms) Date: Tue, 04 Dec 2018 01:03:34 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05ee863bac4_2889feaf245368@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05ee863abbf_2889feaf24535ae";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05ee863abbf_2889feaf24535ae Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05ee863abbf_2889feaf24535ae Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05ee863abbf_2889feaf24535ae–

Completed 302 Found in 21ms (ActiveRecord: 3.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nFWtlBmWbG/Wn/3BcR89Ou/VZq7Eb6w84xJFFfWn6GI/YvXZ0Ur2i"], ["created_at", "2018-12-04 03:03:34.258017"], ["updated_at", "2018-12-04 03:03:34.258017"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gU9Ge.LKxu3EBrByLsAb1uXCqQN91TEg62wZ6/oH//LxS2aDO/XMK"], ["created_at", "2018-12-04 03:03:34.265881"], ["updated_at", "2018-12-04 03:03:34.265881"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:34.269831"], ["updated_at", "2018-12-04 03:03:34.269831"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2319], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2671], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2671], ["room_id", 2319], ["created_at", "2018-12-04 03:03:34.277694"], ["updated_at", "2018-12-04 03:03:34.277694"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$S6QGw.8hOS.MYo8S4tSQ7es2iVIluBJozL8H1Ecf5PNKGA567loo."], ["created_at", "2018-12-04 03:03:34.293891"], ["updated_at", "2018-12-04 03:03:34.293891"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7pUDFQHdmvD3ZDo6U26OQ.0DjeHQXXJ55pAU53fIghAdT0wZd/TOG"], ["created_at", "2018-12-04 03:03:34.301786"], ["updated_at", "2018-12-04 03:03:34.301786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:34.305791"], ["updated_at", "2018-12-04 03:03:34.305791"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2320], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2673], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2673], ["room_id", 2320], ["created_at", "2018-12-04 03:03:34.313785"], ["updated_at", "2018-12-04 03:03:34.313785"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2397], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$Dh//tglkzATr6c2kKJg6B.ZGhEvpt4JjvRKm3qJpe.uA8iYVpi4RK"], ["created_at", "2018-12-04 03:03:34.327782"], ["updated_at", "2018-12-04 03:03:34.327782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2674"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "P-csINXrjRDlyIGUtjwj1w"], ["updated_at", "2018-12-04 03:03:34.336830"], ["id", 2674]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 03:03:34.340568"], ["reset_sent_at", "2018-12-04 03:03:34.339935"], ["id", 2674]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.6ms)

UserMailer#password_reset: processed outbound mail in 10.8ms Sent mail to teste@unb.com.br (5.7ms) Date: Tue, 04 Dec 2018 01:03:34 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05ee86570a6_2889feaf2453995@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05ee86560a0_2889feaf24538df";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05ee86560a0_2889feaf24538df Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/P-csINXrjRDlyIGUtjwj1w/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05ee86560a0_2889feaf24538df Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/P-csINXrjRDlyIGUtjwj1w/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05ee86560a0_2889feaf24538df–

Redirected to test.host/login Completed 302 Found in 28ms (ActiveRecord: 2.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$5zmwO9DPfv7b9QHe.LMjYujkOlvAhnX84NoMzJRAvvbhNrCy2zfTO"], ["created_at", "2018-12-04 03:03:34.369099"], ["updated_at", "2018-12-04 03:03:34.369099"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.5ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$Dy66bJQ8WHpr//M0HZKs9eK.YA22l4WR7Reh.L/.iMi8ahgmTbDaq"], ["created_at", "2018-12-04 03:03:34.387695"], ["updated_at", "2018-12-04 03:03:34.387695"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2676"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$gS1OwAZEC91BiAobhkPEd.Yctrw3NWAZKfuKRpYr2/MXCNT3hKzUe"], ["updated_at", "2018-12-04 03:03:34.397963"], ["id", 2676]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 10ms (ActiveRecord: 2.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$gOotqi1Fu9X3cBEo4FU5zetYAkS2t83Z5crtqJklrsqA1HcAhU/Xi"], ["created_at", "2018-12-04 03:03:34.411412"], ["updated_at", "2018-12-04 03:03:34.411412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2677"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$OZqgF12YE9J1gT33abR5KOL8Ogv63lGeYbXCyvLLqjLNDHBLEdpim"], ["created_at", "2018-12-04 03:03:34.431471"], ["updated_at", "2018-12-04 03:03:34.431471"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2678"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$9hhlPEcqylt.4kGxaobK7utCaAm3E2gUFVVDBHnTStxrbTs2PxmHO"], ["created_at", "2018-12-04 03:03:34.462800"], ["updated_at", "2018-12-04 03:03:34.462800"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2679"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$j9ilSnEuv9RFXDl/LmXU6.02vGrBQSu9YNfY8tKHBvch7eXGcu7Ce"], ["created_at", "2018-12-04 03:03:34.481705"], ["updated_at", "2018-12-04 03:03:34.481705"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2680"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9.G5iTVl0pFj3reB0l9CeOMXpAILTiXNF9BRd4yQkK0DggIsZPKLi"], ["created_at", "2018-12-04 03:03:34.499056"], ["updated_at", "2018-12-04 03:03:34.499056"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.7ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OOIx0SFIoTUO68xSNamJI.7Cz0GOqKJjDR0E1tX5CyB0D8pVdh4Ty"], ["created_at", "2018-12-04 03:03:34.515193"], ["updated_at", "2018-12-04 03:03:34.515193"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.1ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$alVRNrGlF2ukBLMW2ZM1R.MH0LOmd2aDzwolU5yI9MEUZw9McxKUq"], ["created_at", "2018-12-04 03:03:34.531475"], ["updated_at", "2018-12-04 03:03:34.531475"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:34.535298"], ["updated_at", "2018-12-04 03:03:34.535298"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2321], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2683], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2683], ["room_id", 2321], ["created_at", "2018-12-04 03:03:34.542655"], ["updated_at", "2018-12-04 03:03:34.542655"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tHuN/OfuHYH9T1USpoM.fe7eoIXVkooSaTLidk9KYRKGOSoxypeNC"], ["created_at", "2018-12-04 03:03:34.558653"], ["updated_at", "2018-12-04 03:03:34.558653"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:34.562348"], ["updated_at", "2018-12-04 03:03:34.562348"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2322], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2684], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2684], ["room_id", 2322], ["created_at", "2018-12-04 03:03:34.568870"], ["updated_at", "2018-12-04 03:03:34.568870"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ezagkCCDmzu76X.ry4LO4OQ80xYHnZ3cx5G8sYy1hWdHEYI5qtvQy"], ["created_at", "2018-12-04 03:03:34.621666"], ["updated_at", "2018-12-04 03:03:34.621666"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:34.625586"], ["updated_at", "2018-12-04 03:03:34.625586"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:03:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:34.638339"], ["last_sign_in_at", "2018-12-04 03:03:34.638339"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:34.639567"], ["id", 2685]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2323"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2323], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2685], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2685], ["room_id", 2323], ["created_at", "2018-12-04 03:03:34.656562"], ["updated_at", "2018-12-04 03:03:34.656562"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2323], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZehoDlnzNjD65luUSmWy3edrLLUMqNJS5UwII5oTv0Wkra0x1K3G6"], ["created_at", "2018-12-04 03:03:34.671274"], ["updated_at", "2018-12-04 03:03:34.671274"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:34.675210"], ["updated_at", "2018-12-04 03:03:34.675210"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:03:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:34.680260"], ["last_sign_in_at", "2018-12-04 03:03:34.680260"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:34.681219"], ["id", 2686]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2324"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2324], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2686], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2686], ["room_id", 2324], ["created_at", "2018-12-04 03:03:34.691955"], ["updated_at", "2018-12-04 03:03:34.691955"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Eld1NRTWIIWxl4vaYtY9ru5KjK6xCGRal8XzzCkzZF33slSDbdsBu"], ["created_at", "2018-12-04 03:03:34.704385"], ["updated_at", "2018-12-04 03:03:34.704385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:34.708382"], ["updated_at", "2018-12-04 03:03:34.708382"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:03:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:34.713544"], ["last_sign_in_at", "2018-12-04 03:03:34.713544"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:34.714505"], ["id", 2687]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2325", "user_id"=>"2687"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2325], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2687], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2687], ["room_id", 2325], ["created_at", "2018-12-04 03:03:34.725222"], ["updated_at", "2018-12-04 03:03:34.725222"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:03:34 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2325", "user_id"=>"2687"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2687], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2325], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2687], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2687], ["room_id", 2325], ["created_at", "2018-12-04 03:03:34.741083"], ["updated_at", "2018-12-04 03:03:34.741083"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UvxoHkeuP./nhsUgNJYmAOssSMal9Aaw8.39jUIPfagiduWCsxRNq"], ["created_at", "2018-12-04 03:03:34.753085"], ["updated_at", "2018-12-04 03:03:34.753085"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:34.757328"], ["updated_at", "2018-12-04 03:03:34.757328"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:03:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:34.762881"], ["last_sign_in_at", "2018-12-04 03:03:34.762881"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:34.763848"], ["id", 2688]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2326", "user_id"=>"2688"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2326], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2688], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2688], ["room_id", 2326], ["created_at", "2018-12-04 03:03:34.774447"], ["updated_at", "2018-12-04 03:03:34.774447"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 2.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:03:34 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2326", "user_id"=>"2688"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2688], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2326], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2688], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2688], ["room_id", 2326], ["created_at", "2018-12-04 03:03:34.789503"], ["updated_at", "2018-12-04 03:03:34.789503"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.8ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2326], ["user_id", 2688], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZMSw32mOfTCoU.yJFf/xmOEqbd6j3meZUFA9HhsBZDdRdch.QUUwO"], ["created_at", "2018-12-04 03:03:34.803503"], ["updated_at", "2018-12-04 03:03:34.803503"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:34.807441"], ["updated_at", "2018-12-04 03:03:34.807441"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:03:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:34.813022"], ["last_sign_in_at", "2018-12-04 03:03:34.813022"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:34.814033"], ["id", 2689]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2327", "user_id"=>"2689"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2327], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2689], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2689], ["room_id", 2327], ["created_at", "2018-12-04 03:03:34.824976"], ["updated_at", "2018-12-04 03:03:34.824976"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:03:34 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2327", "user_id"=>"2689"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2689], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2327], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2689], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2689], ["room_id", 2327], ["created_at", "2018-12-04 03:03:34.840391"], ["updated_at", "2018-12-04 03:03:34.840391"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.7ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2327], ["user_id", 2689], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$V8Qa25RbB2SNCTxFsM/jwOmkqyMr7Hm/Sh5Tklnrllhu2h4D2D.KG"], ["created_at", "2018-12-04 03:03:34.853471"], ["updated_at", "2018-12-04 03:03:34.853471"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:34.857670"], ["updated_at", "2018-12-04 03:03:34.857670"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:03:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:34.862503"], ["last_sign_in_at", "2018-12-04 03:03:34.862503"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:34.863551"], ["id", 2690]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2328"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2328], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$U5KmFuzGRFv4yudbRUiIeuW0qILxCF/qg5FGEZ4kHcMdbAdeQXxPu"], ["created_at", "2018-12-04 03:03:34.879865"], ["updated_at", "2018-12-04 03:03:34.879865"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:34.883840"], ["updated_at", "2018-12-04 03:03:34.883840"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:03:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:34.888474"], ["last_sign_in_at", "2018-12-04 03:03:34.888474"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:34.889518"], ["id", 2691]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2329"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$P7G2PcllyVyyRJg6P.yxtunuHbjYnQom03BTssOBxpTWpNv5/0rJu"], ["created_at", "2018-12-04 03:03:34.905182"], ["updated_at", "2018-12-04 03:03:34.905182"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:34.909189"], ["updated_at", "2018-12-04 03:03:34.909189"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2330], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2692], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2692], ["room_id", 2330], ["created_at", "2018-12-04 03:03:34.916056"], ["updated_at", "2018-12-04 03:03:34.916056"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2330” for 127.0.0.1 at 2018-12-04 01:03:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:34.920108"], ["last_sign_in_at", "2018-12-04 03:03:34.920108"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:34.921112"], ["id", 2692]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2330"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2330], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2330')
Rendered appointments/show.html.erb within layouts/application (13.2ms)
Rendered layouts/_header-user.html.erb (2.9ms)

Completed 200 OK in 213ms (Views: 209.1ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2fL60pHbu4l4u2uCjBvehORM3EnqmM5Y1tLYW3qoOIvFWQ3m6PBtm"], ["created_at", "2018-12-04 03:03:35.148260"], ["updated_at", "2018-12-04 03:03:35.148260"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.152056"], ["updated_at", "2018-12-04 03:03:35.152056"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2331], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2693], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2693], ["room_id", 2331], ["created_at", "2018-12-04 03:03:35.160060"], ["updated_at", "2018-12-04 03:03:35.160060"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2331], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2693], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2693], ["room_id", 2331], ["created_at", "2018-12-04 03:03:35.169124"], ["updated_at", "2018-12-04 03:03:35.169124"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.175773"], ["last_sign_in_at", "2018-12-04 03:03:35.175773"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.177319"], ["id", 2693]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2693]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.6ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 22ms (Views: 9.7ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$feu50w8rC95Kd2eIsXaJ6eua2t2qZVl76UCwZ.MY53C8MYK5zN3XC"], ["created_at", "2018-12-04 03:03:35.216602"], ["updated_at", "2018-12-04 03:03:35.216602"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.221345"], ["updated_at", "2018-12-04 03:03:35.221345"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2332], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2694], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2694], ["room_id", 2332], ["created_at", "2018-12-04 03:03:35.229464"], ["updated_at", "2018-12-04 03:03:35.229464"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2332], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2694], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2694], ["room_id", 2332], ["created_at", "2018-12-04 03:03:35.237882"], ["updated_at", "2018-12-04 03:03:35.237882"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.242131"], ["last_sign_in_at", "2018-12-04 03:03:35.242131"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.243192"], ["id", 2694]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2694]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oCQYZwO/Fx3q3s9udJo8m.zxsswEbMyIbraKfp6FeBcII40nRJX7O"], ["created_at", "2018-12-04 03:03:35.265703"], ["updated_at", "2018-12-04 03:03:35.265703"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.270007"], ["updated_at", "2018-12-04 03:03:35.270007"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2333], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2695], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2695], ["room_id", 2333], ["created_at", "2018-12-04 03:03:35.277997"], ["updated_at", "2018-12-04 03:03:35.277997"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2413” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.282270"], ["last_sign_in_at", "2018-12-04 03:03:35.282270"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.283294"], ["id", 2695]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2413"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2413], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2413]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (19.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KIf.8/amtWkY.rUvd8TEZuYGK9zlikG2vfHT3MFXFfob5e4midWwe"], ["created_at", "2018-12-04 03:03:35.305217"], ["updated_at", "2018-12-04 03:03:35.305217"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.328490"], ["updated_at", "2018-12-04 03:03:35.328490"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$J2dW0wr/Fkks8IHPA58p8.p7VmZ36PAkrpMN8uBNm8czJ6r/iZN1K"], ["created_at", "2018-12-04 03:03:35.338189"], ["updated_at", "2018-12-04 03:03:35.338189"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2334], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2697], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2697], ["room_id", 2334], ["created_at", "2018-12-04 03:03:35.347463"], ["updated_at", "2018-12-04 03:03:35.347463"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:03:35.351464"], ["id", 2414]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2334], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2697], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2697], ["room_id", 2334], ["created_at", "2018-12-04 03:03:35.359200"], ["updated_at", "2018-12-04 03:03:35.359200"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:03:35.363087"], ["id", 2415]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.367165"], ["last_sign_in_at", "2018-12-04 03:03:35.367165"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.368233"], ["id", 2696]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2697], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2334], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2697], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2334], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.1ms)
Rendered layouts/_header-admin.html.erb (2.9ms)

Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 2.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T/aWfnc0RAR7IA0i4NWdL.MisP49OINw918IzXGhE7CHYpXsKFTZe"], ["created_at", "2018-12-04 03:03:35.403104"], ["updated_at", "2018-12-04 03:03:35.403104"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.408129"], ["updated_at", "2018-12-04 03:03:35.408129"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cfvbS82JdWf3ISsC7H5XweWbaWi9SbGC3tGeptp1HbdaU/RJAL3cu"], ["created_at", "2018-12-04 03:03:35.415539"], ["updated_at", "2018-12-04 03:03:35.415539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2335], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2699], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2699], ["room_id", 2335], ["created_at", "2018-12-04 03:03:35.424128"], ["updated_at", "2018-12-04 03:03:35.424128"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:03:35.428218"], ["id", 2416]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2335], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2699], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2699], ["room_id", 2335], ["created_at", "2018-12-04 03:03:35.436412"], ["updated_at", "2018-12-04 03:03:35.436412"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:03:35.440219"], ["id", 2417]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.444108"], ["last_sign_in_at", "2018-12-04 03:03:35.444108"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.445138"], ["id", 2698]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2699], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2335], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2699], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2335], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.4ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 14ms (Views: 10.7ms | ActiveRecord: 2.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SbW316dTL4rJKVGD3vZhTuQLnOPrqwJX7gODYtiqOhBi1R0tyHMVO"], ["created_at", "2018-12-04 03:03:35.475040"], ["updated_at", "2018-12-04 03:03:35.475040"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.479098"], ["last_sign_in_at", "2018-12-04 03:03:35.479098"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.480107"], ["id", 2700]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.4ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8NBCTgd9tPMZkN8IO/UPCekH2aAK4edeHRNTYoKYPPBSVdSONlJKm"], ["created_at", "2018-12-04 03:03:35.510361"], ["updated_at", "2018-12-04 03:03:35.510361"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.514256"], ["last_sign_in_at", "2018-12-04 03:03:35.514256"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.515361"], ["id", 2701]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LUvsZMhAw2ULinn15TLJdeMX.QS6bYsTP/2fVVtojL9QC/NlJSkFS"], ["created_at", "2018-12-04 03:03:35.534150"], ["updated_at", "2018-12-04 03:03:35.534150"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.538653"], ["last_sign_in_at", "2018-12-04 03:03:35.538653"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.539803"], ["id", 2702]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Vnwi9E/hu17BWFXOdM5XsuNEGAmO2K.Ai5baRPudwi2nYW6KVN3Lm"], ["created_at", "2018-12-04 03:03:35.563711"], ["updated_at", "2018-12-04 03:03:35.563711"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.568010"], ["last_sign_in_at", "2018-12-04 03:03:35.568010"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.569064"], ["id", 2703]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:03:35 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Npwc4zicsJef5QaQpAhe9uHijSB1UsuVeIlZxc6R63fJzR7d2bryy"], ["created_at", "2018-12-04 03:03:35.602852"], ["updated_at", "2018-12-04 03:03:35.602852"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.607150"], ["updated_at", "2018-12-04 03:03:35.607150"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2336” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.611108"], ["last_sign_in_at", "2018-12-04 03:03:35.611108"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.612149"], ["id", 2704]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2336"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2336], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/bvOK1VqobEkgnaVSRPCs.9qAxZHVPTKsNTDODYGpfObbr29s66h."], ["created_at", "2018-12-04 03:03:35.636599"], ["updated_at", "2018-12-04 03:03:35.636599"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.641092"], ["updated_at", "2018-12-04 03:03:35.641092"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2337” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.645149"], ["last_sign_in_at", "2018-12-04 03:03:35.645149"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.646198"], ["id", 2705]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2337"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2337], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.665746"], ["updated_at", "2018-12-04 03:03:35.665746"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2338” for 127.0.0.1 at 2018-12-04 01:03:35 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2338"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KJejnTjlXWwkLXbCNdd4m.opojAzvMXHPQxnpOnQfnZ9NzmadUEB."], ["created_at", "2018-12-04 03:03:35.683049"], ["updated_at", "2018-12-04 03:03:35.683049"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.688925"], ["updated_at", "2018-12-04 03:03:35.688925"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2339” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.694973"], ["last_sign_in_at", "2018-12-04 03:03:35.694973"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.696370"], ["id", 2706]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2339"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (5.0ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.720863"], ["updated_at", "2018-12-04 03:03:35.720863"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2340” for 127.0.0.1 at 2018-12-04 01:03:35 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2340"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/KP8WRom11tH3jOrog9Zoua3gSgCDjy9.77cVmUGXUHjldslHiIEO"], ["created_at", "2018-12-04 03:03:35.737826"], ["updated_at", "2018-12-04 03:03:35.737826"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.742483"], ["updated_at", "2018-12-04 03:03:35.742483"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2341/edit” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.747174"], ["last_sign_in_at", "2018-12-04 03:03:35.747174"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.748516"], ["id", 2707]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2341"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2341], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (6.1ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 14ms (Views: 11.6ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$k/PxuXKCWPym5MbbzWQceOTzDN4U.qRBSXLDRl2mQJt7sxFGVzx6C"], ["created_at", "2018-12-04 03:03:35.777988"], ["updated_at", "2018-12-04 03:03:35.777988"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.782926"], ["updated_at", "2018-12-04 03:03:35.782926"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2342/edit” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.787590"], ["last_sign_in_at", "2018-12-04 03:03:35.787590"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.788707"], ["id", 2708]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2342"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2342], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.811936"], ["updated_at", "2018-12-04 03:03:35.811936"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2343” for 127.0.0.1 at 2018-12-04 01:03:35 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2343"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XqZBOG.cVqEndu0q5kmFc.bgPqPgrKaGMuBwAj38qSKiZSkipnsDK"], ["created_at", "2018-12-04 03:03:35.828807"], ["updated_at", "2018-12-04 03:03:35.828807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.835334"], ["last_sign_in_at", "2018-12-04 03:03:35.835334"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.836581"], ["id", 2709]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.844007"], ["updated_at", "2018-12-04 03:03:35.844007"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aFIeVhyMYaPeMaPcVXbW..Tw476amChQAZyfFZroFgeGdUiNBrBza"], ["created_at", "2018-12-04 03:03:35.860032"], ["updated_at", "2018-12-04 03:03:35.860032"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.865801"], ["last_sign_in_at", "2018-12-04 03:03:35.865801"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.867116"], ["id", 2710]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.874636"], ["updated_at", "2018-12-04 03:03:35.874636"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tupXDzMNNBgpIAZ1ACFNMOiwNYU5TvYIoaj9/pcpijJNzhQt3jM62"], ["created_at", "2018-12-04 03:03:35.888767"], ["updated_at", "2018-12-04 03:03:35.888767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.894880"], ["last_sign_in_at", "2018-12-04 03:03:35.894880"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.895961"], ["id", 2711]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ArbJCzt72OopRoE3VGwE0eFNVIRVJ9myHTPwZrE3zi7GHTnK96dcu"], ["created_at", "2018-12-04 03:03:35.917167"], ["updated_at", "2018-12-04 03:03:35.917167"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.923221"], ["last_sign_in_at", "2018-12-04 03:03:35.923221"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.924445"], ["id", 2712]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ABj0JyHWF9yTogBSExWlo.6WrlatOn4m5SvEashHdEB9wG9pmVzJ."], ["created_at", "2018-12-04 03:03:35.944902"], ["updated_at", "2018-12-04 03:03:35.944902"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.950846"], ["last_sign_in_at", "2018-12-04 03:03:35.950846"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.952142"], ["id", 2713]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/tITwANVxjb81XPNCrPVcufnc7Bvr9arEACn4BOn8KFvcxXff7X7W"], ["created_at", "2018-12-04 03:03:35.968260"], ["updated_at", "2018-12-04 03:03:35.968260"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:35.972948"], ["updated_at", "2018-12-04 03:03:35.972948"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2346” for 127.0.0.1 at 2018-12-04 01:03:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:35.980066"], ["last_sign_in_at", "2018-12-04 03:03:35.980066"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:35.981601"], ["id", 2714]]
 (0.6ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2346"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2346], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:03:35.992230"], ["id", 2346]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2346 Completed 302 Found in 7ms (ActiveRecord: 1.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fuwITLM7r.q9CULPc39PNOT6MsAM2SrXALtRlJrTtbg90DVqDIEDS"], ["created_at", "2018-12-04 03:03:36.007402"], ["updated_at", "2018-12-04 03:03:36.007402"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:36.012071"], ["updated_at", "2018-12-04 03:03:36.012071"], ["tipo_sala", "palestras"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2347” for 127.0.0.1 at 2018-12-04 01:03:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:36.017522"], ["last_sign_in_at", "2018-12-04 03:03:36.017522"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:36.018838"], ["id", 2715]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2347"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2347], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:03:36.027493"], ["id", 2347]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2347 Completed 302 Found in 8ms (ActiveRecord: 1.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q7q9cfJDRIs5zIfMZSH3UuW/LTIh3j8YY/sgYQfbyKvsKIVDXKMpO"], ["created_at", "2018-12-04 03:03:36.042198"], ["updated_at", "2018-12-04 03:03:36.042198"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:36.047080"], ["updated_at", "2018-12-04 03:03:36.047080"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2348” for 127.0.0.1 at 2018-12-04 01:03:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:36.052154"], ["last_sign_in_at", "2018-12-04 03:03:36.052154"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:36.053422"], ["id", 2716]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2348"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2348], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 16ms (Views: 9.6ms | ActiveRecord: 1.2ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SF6wfbYF87cvrTI194sX8OO0C/q/xMfptf1LUtyLgd.sjvhnfiOEO"], ["created_at", "2018-12-04 03:03:36.085255"], ["updated_at", "2018-12-04 03:03:36.085255"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:36.090161"], ["updated_at", "2018-12-04 03:03:36.090161"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2349” for 127.0.0.1 at 2018-12-04 01:03:36 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:36.095549"], ["last_sign_in_at", "2018-12-04 03:03:36.095549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:36.096838"], ["id", 2717]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2349"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2349], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 15ms (Views: 9.4ms | ActiveRecord: 1.1ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WABVo5W9HdnfpRMNIDxH9.zicC6HclDG5GWxTRaUPnGWzGEVyUTE2"], ["created_at", "2018-12-04 03:03:36.127337"], ["updated_at", "2018-12-04 03:03:36.127337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:03:36 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:36.133050"], ["last_sign_in_at", "2018-12-04 03:03:36.133050"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:36.133969"], ["id", 2718]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fxpqlaZcRnIgEIfXQZF.Cu64CbodbugbzEb911QXklgbl5tb.uhai"], ["created_at", "2018-12-04 03:03:36.150166"], ["updated_at", "2018-12-04 03:03:36.150166"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:36.156294"], ["updated_at", "2018-12-04 03:03:36.156294"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2350” for 127.0.0.1 at 2018-12-04 01:03:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:36.161041"], ["last_sign_in_at", "2018-12-04 03:03:36.161041"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:36.162116"], ["id", 2719]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2350"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2350], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2350]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.8ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TYvHRMwX6g3/VLprijBzXezY7U0.M3xv9kZVEH2nLTY0TMnty3tf2"], ["created_at", "2018-12-04 03:03:36.184012"], ["updated_at", "2018-12-04 03:03:36.184012"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:36.189537"], ["updated_at", "2018-12-04 03:03:36.189537"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2351” for 127.0.0.1 at 2018-12-04 01:03:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:36.193767"], ["last_sign_in_at", "2018-12-04 03:03:36.193767"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:36.194837"], ["id", 2720]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2351"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2351], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2351]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/pEmAaXvB8b.gMWJ1pUTYuA1eumaH7dEXjzhTRuKeYoLr/iPoiA1a"], ["created_at", "2018-12-04 03:03:36.215147"], ["updated_at", "2018-12-04 03:03:36.215147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:36.220882"], ["updated_at", "2018-12-04 03:03:36.220882"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2352” for 127.0.0.1 at 2018-12-04 01:03:36 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:36.226545"], ["last_sign_in_at", "2018-12-04 03:03:36.226545"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:36.228093"], ["id", 2721]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2352"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kT78892B2jPg7nIORiQIOOXqJNCtQE03TZC4L6CzEdggzWE0uxVFS"], ["created_at", "2018-12-04 03:03:36.248556"], ["updated_at", "2018-12-04 03:03:36.248556"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:36.253638"], ["updated_at", "2018-12-04 03:03:36.253638"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2353” for 127.0.0.1 at 2018-12-04 01:03:36 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:36.257468"], ["last_sign_in_at", "2018-12-04 03:03:36.257468"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:36.258357"], ["id", 2722]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2353"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RoZHKmYWhOgeCXavaPKxauy1h6Oe1tKNOcAuPxbbh6SdEkVFAAn4."], ["created_at", "2018-12-04 03:03:36.273318"], ["updated_at", "2018-12-04 03:03:36.273318"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 01:03:36 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:36.277656"], ["last_sign_in_at", "2018-12-04 03:03:36.277656"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:36.278452"], ["id", 2723]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AeQSgKRZTKn869ItdbjITOnXfE7UOU0XYXP8Plka.MYwOI4MoLDfq"], ["created_at", "2018-12-04 03:03:36.309151"], ["updated_at", "2018-12-04 03:03:36.309151"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:36.315505"], ["updated_at", "2018-12-04 03:03:36.315505"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:36.320175"], ["updated_at", "2018-12-04 03:03:36.320175"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:36.324024"], ["updated_at", "2018-12-04 03:03:36.324024"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2354], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2724], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2724], ["room_id", 2354], ["created_at", "2018-12-04 03:03:36.332970"], ["updated_at", "2018-12-04 03:03:36.332970"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 01:03:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:36.338302"], ["last_sign_in_at", "2018-12-04 03:03:36.338302"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:36.339317"], ["id", 2724]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 23ms (Views: 8.6ms | ActiveRecord: 1.8ms)

Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$91130EaF6WQKAsz/sa9wgeVzu.F1NpNAeebHdX9LXIprrfA2FYeGS"], ["created_at", "2018-12-04 03:03:36.381053"], ["updated_at", "2018-12-04 03:03:36.381053"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:36.386346"], ["updated_at", "2018-12-04 03:03:36.386346"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:36.390463"], ["updated_at", "2018-12-04 03:03:36.390463"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:03:36.394034"], ["updated_at", "2018-12-04 03:03:36.394034"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2357], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2725], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2725], ["room_id", 2357], ["created_at", "2018-12-04 03:03:36.402911"], ["updated_at", "2018-12-04 03:03:36.402911"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 01:03:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:03:36.407639"], ["last_sign_in_at", "2018-12-04 03:03:36.407639"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:03:36.408643"], ["id", 2725]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (1.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jVxq1LhtJpUmhT6OvAxK9OACD86XO.FT57wibgGyARSUk4Bmtj0C."], ["created_at", "2018-12-04 03:05:05.106790"], ["updated_at", "2018-12-04 03:05:05.106790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ehBLdeQHnQlU7/XVSVJRpeSdGSMBSSqJYdOpZK23ZPROMDitk338q"], ["created_at", "2018-12-04 03:05:05.115239"], ["updated_at", "2018-12-04 03:05:05.115239"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:05.138924"], ["updated_at", "2018-12-04 03:05:05.138924"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2360], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2727], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2727], ["room_id", 2360], ["created_at", "2018-12-04 03:05:05.184899"], ["updated_at", "2018-12-04 03:05:05.184899"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2420"}
Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2420], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2360], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2727], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.5ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.5ms)

UserMailer#status_notification: processed outbound mail in 360.5ms Sent mail to 123@123.com (11.4ms) Date: Tue, 04 Dec 2018 01:05:05 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05eee18cae8_292e3acf1493594@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05eee18ac52_292e3acf149343a";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05eee18ac52_292e3acf149343a Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05eee18ac52_292e3acf149343a Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05eee18ac52_292e3acf149343a–

Completed 302 Found in 384ms (ActiveRecord: 2.4ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C3pv3hrb//Xh.Gzy3V9unefXYHLrZ8Up4NsEzUzqEs7PwkzKDrdNi"], ["created_at", "2018-12-04 03:05:05.591936"], ["updated_at", "2018-12-04 03:05:05.591936"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hO96hZsPS.voATYPCJl8ruBYBrow4nzj2VtluiOQlgRufm.DnC2Mm"], ["created_at", "2018-12-04 03:05:05.599665"], ["updated_at", "2018-12-04 03:05:05.599665"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:05.603754"], ["updated_at", "2018-12-04 03:05:05.603754"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2361], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2729], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2729], ["room_id", 2361], ["created_at", "2018-12-04 03:05:05.611714"], ["updated_at", "2018-12-04 03:05:05.611714"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2421"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2421], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2361], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2729], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-04 03:05:05.623195"], ["id", 2421]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (5.7ms) Date: Tue, 04 Dec 2018 01:05:05 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05eee19ab38_292e3acf1493778@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05eee199c00_292e3acf14936a8";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05eee199c00_292e3acf14936a8 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05eee199c00_292e3acf14936a8 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05eee199c00_292e3acf14936a8–

Completed 302 Found in 21ms (ActiveRecord: 2.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Y4Kr56fIK.QVKBCjGwotFOI388Ib.tQhWiTSJQywIjn6LDii7Bga2"], ["created_at", "2018-12-04 03:05:05.647114"], ["updated_at", "2018-12-04 03:05:05.647114"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$F9IO.KoX2Ol4IVea1HXU5uKmIqo66Y4/.rn1VIGMuLVf5z5H4oNbG"], ["created_at", "2018-12-04 03:05:05.655009"], ["updated_at", "2018-12-04 03:05:05.655009"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:05.659296"], ["updated_at", "2018-12-04 03:05:05.659296"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2362], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2731], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2731], ["room_id", 2362], ["created_at", "2018-12-04 03:05:05.667329"], ["updated_at", "2018-12-04 03:05:05.667329"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eM9YjICy/5iiDC6UnoNH4uiNTUg0Su6KQGwGO.SMkA7rmKY6vv612"], ["created_at", "2018-12-04 03:05:05.683754"], ["updated_at", "2018-12-04 03:05:05.683754"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xnj.KBtsoTxRkDxoC13T4uLs708Zm3tyPuCAlzhxdpF.J1qguXXbu"], ["created_at", "2018-12-04 03:05:05.692293"], ["updated_at", "2018-12-04 03:05:05.692293"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:05.696547"], ["updated_at", "2018-12-04 03:05:05.696547"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2363], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2733], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2733], ["room_id", 2363], ["created_at", "2018-12-04 03:05:05.704882"], ["updated_at", "2018-12-04 03:05:05.704882"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2423], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$5bs6y/jofVasdSvUAta86O5.QR9s0kTunOqbtcEb./yzdGmpC.qiu"], ["created_at", "2018-12-04 03:05:05.719078"], ["updated_at", "2018-12-04 03:05:05.719078"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2734"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "E1kLo4L6J_EY929wJdofFA"], ["updated_at", "2018-12-04 03:05:05.728174"], ["id", 2734]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 03:05:05.732131"], ["reset_sent_at", "2018-12-04 03:05:05.731356"], ["id", 2734]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)

UserMailer#password_reset: processed outbound mail in 10.8ms Sent mail to teste@unb.com.br (6.3ms) Date: Tue, 04 Dec 2018 01:05:05 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05eee1b6b63_292e3acf14940ce@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05eee1b5b45_292e3acf1493942";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05eee1b5b45_292e3acf1493942 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/E1kLo4L6J_EY929wJdofFA/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05eee1b5b45_292e3acf1493942 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/E1kLo4L6J_EY929wJdofFA/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05eee1b5b45_292e3acf1493942–

Redirected to test.host/login Completed 302 Found in 29ms (ActiveRecord: 3.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$irjfb0tJqqnAc3TnU1r2kumKbfvPNTYc83dnfiqq.ezb.IPAnI5CK"], ["created_at", "2018-12-04 03:05:05.761450"], ["updated_at", "2018-12-04 03:05:05.761450"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.1ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$UlT5TJcZdGzET7MVB4N/tejzxF1MJQnabjpBYyWdM6Uj41JdwYq6."], ["created_at", "2018-12-04 03:05:05.780177"], ["updated_at", "2018-12-04 03:05:05.780177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2736"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$aY660y3x8YQTaXpfUTx/z.QIVrU3JYlqFrUfysMA2R3/LY7BrLxgS"], ["updated_at", "2018-12-04 03:05:05.789973"], ["id", 2736]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 1.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$.CPrAbOyRfcc9KsbdehuKOwsk8NoO9xzTV5z/84BJO2FP3OrTjOzy"], ["created_at", "2018-12-04 03:05:05.806385"], ["updated_at", "2018-12-04 03:05:05.806385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2737"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$OBvUwFT9ffdvRV.Rjf1sN.oiyZQI5hgC7kqsZUZeHchdfqgf6RBMa"], ["created_at", "2018-12-04 03:05:05.825995"], ["updated_at", "2018-12-04 03:05:05.825995"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2738"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 18ms (Views: 2.2ms | ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$BHOD2sKJUXqYdmSQS3cgz.lWWTZFzfkO8KagYzGNTNWhM4u1vYjuu"], ["created_at", "2018-12-04 03:05:05.856218"], ["updated_at", "2018-12-04 03:05:05.856218"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2739"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 6ms (Views: 1.0ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$RCk5/udsrbp7oYpmdrNghubT4IsHbAbgK9Es8mU..mi7L1ATnxSqu"], ["created_at", "2018-12-04 03:05:05.874243"], ["updated_at", "2018-12-04 03:05:05.874243"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2740"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$smY6dt9Y9cBPMovq2u.LmO8b8thpgDcTiYq/YgOBxeftxPNHY5Epa"], ["created_at", "2018-12-04 03:05:05.891146"], ["updated_at", "2018-12-04 03:05:05.891146"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.6ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Kq/epBWT5InucmG3ml4eDu63qvMwS4lg/mkjRKZ5FJsKqPJxjtL9i"], ["created_at", "2018-12-04 03:05:05.907112"], ["updated_at", "2018-12-04 03:05:05.907112"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.5ms

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MNirTLf0UzDacl5JABtgPOrw8COOVukrlzg83DOLa044sLM3ge/ga"], ["created_at", "2018-12-04 03:05:05.930892"], ["updated_at", "2018-12-04 03:05:05.930892"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:05.934498"], ["updated_at", "2018-12-04 03:05:05.934498"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2364], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2743], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2743], ["room_id", 2364], ["created_at", "2018-12-04 03:05:05.941641"], ["updated_at", "2018-12-04 03:05:05.941641"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sZvouSaV0WNk4Dd/YFDiIO5.u3g9bCqm3qVHEGCpedgRPEuBYIavu"], ["created_at", "2018-12-04 03:05:05.957559"], ["updated_at", "2018-12-04 03:05:05.957559"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:05.961784"], ["updated_at", "2018-12-04 03:05:05.961784"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2365], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2744], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2744], ["room_id", 2365], ["created_at", "2018-12-04 03:05:05.969463"], ["updated_at", "2018-12-04 03:05:05.969463"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/pzMk4xK478NlF6AcC9tzuy25ETK0AIU4SipE2vtPihjWlqMn14R6"], ["created_at", "2018-12-04 03:05:06.026990"], ["updated_at", "2018-12-04 03:05:06.026990"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.030954"], ["updated_at", "2018-12-04 03:05:06.030954"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.044100"], ["last_sign_in_at", "2018-12-04 03:05:06.044100"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.045366"], ["id", 2745]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2366"}
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2366], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2745], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2745], ["room_id", 2366], ["created_at", "2018-12-04 03:05:06.064787"], ["updated_at", "2018-12-04 03:05:06.064787"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.0ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2366], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PCimYrhenMGv9Pu1waguR.lIys9wtQxBZstUIhsZUzk4VycCZ5lpu"], ["created_at", "2018-12-04 03:05:06.080950"], ["updated_at", "2018-12-04 03:05:06.080950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.085630"], ["updated_at", "2018-12-04 03:05:06.085630"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.091119"], ["last_sign_in_at", "2018-12-04 03:05:06.091119"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.092273"], ["id", 2746]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2367"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2367], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2746], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2746], ["room_id", 2367], ["created_at", "2018-12-04 03:05:06.105366"], ["updated_at", "2018-12-04 03:05:06.105366"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8s6nDmhx36dLsH6KY.F2u.KIB1GIWi44MY.1hS7ao0.RaDKDDXzX2"], ["created_at", "2018-12-04 03:05:06.121776"], ["updated_at", "2018-12-04 03:05:06.121776"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.126408"], ["updated_at", "2018-12-04 03:05:06.126408"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.131851"], ["last_sign_in_at", "2018-12-04 03:05:06.131851"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.132906"], ["id", 2747]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2368", "user_id"=>"2747"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2368], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2747], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2747], ["room_id", 2368], ["created_at", "2018-12-04 03:05:06.143933"], ["updated_at", "2018-12-04 03:05:06.143933"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2368", "user_id"=>"2747"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2747], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2368], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2747], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2747], ["room_id", 2368], ["created_at", "2018-12-04 03:05:06.159868"], ["updated_at", "2018-12-04 03:05:06.159868"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sRdx5C04WlsMkxGmsObZ4OGoE9O2bUJrIIrEuk131XRIP0S.A251a"], ["created_at", "2018-12-04 03:05:06.171623"], ["updated_at", "2018-12-04 03:05:06.171623"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.175467"], ["updated_at", "2018-12-04 03:05:06.175467"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.180919"], ["last_sign_in_at", "2018-12-04 03:05:06.180919"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.181887"], ["id", 2748]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2369", "user_id"=>"2748"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2369], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2748], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2748], ["room_id", 2369], ["created_at", "2018-12-04 03:05:06.192388"], ["updated_at", "2018-12-04 03:05:06.192388"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2369", "user_id"=>"2748"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2748], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2369], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2748], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2748], ["room_id", 2369], ["created_at", "2018-12-04 03:05:06.207712"], ["updated_at", "2018-12-04 03:05:06.207712"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.8ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2369], ["user_id", 2748], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9yNzhqX1Ff90784444jU0.4dQ2EEYuSR3O6VvoD17U.CzHBJN3R9K"], ["created_at", "2018-12-04 03:05:06.221862"], ["updated_at", "2018-12-04 03:05:06.221862"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.226063"], ["updated_at", "2018-12-04 03:05:06.226063"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.231348"], ["last_sign_in_at", "2018-12-04 03:05:06.231348"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.232288"], ["id", 2749]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2370", "user_id"=>"2749"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2370], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2749], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2749], ["room_id", 2370], ["created_at", "2018-12-04 03:05:06.242854"], ["updated_at", "2018-12-04 03:05:06.242854"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 2.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2370", "user_id"=>"2749"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2749], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2370], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2749], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2749], ["room_id", 2370], ["created_at", "2018-12-04 03:05:06.257528"], ["updated_at", "2018-12-04 03:05:06.257528"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2370], ["user_id", 2749], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$EPW5GYOFlfX3AL9K2jFpVeIpAjh.HHBtOL/qeBQhaPMMxoBSqPuLO"], ["created_at", "2018-12-04 03:05:06.270425"], ["updated_at", "2018-12-04 03:05:06.270425"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.274311"], ["updated_at", "2018-12-04 03:05:06.274311"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.279221"], ["last_sign_in_at", "2018-12-04 03:05:06.279221"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.280185"], ["id", 2750]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2371"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2371], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JfKNSlYdijuXXww2XENQpeWe1jHFMhEbWMjdHzNQLqTsT/hzyfEH2"], ["created_at", "2018-12-04 03:05:06.296344"], ["updated_at", "2018-12-04 03:05:06.296344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.300567"], ["updated_at", "2018-12-04 03:05:06.300567"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.306134"], ["last_sign_in_at", "2018-12-04 03:05:06.306134"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.307275"], ["id", 2751]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2372"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JajdluvVoRgOloPVO5m2QucoqcvUDA8yqIDQYOBXGZwuBxPnGb7BG"], ["created_at", "2018-12-04 03:05:06.324769"], ["updated_at", "2018-12-04 03:05:06.324769"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.330520"], ["updated_at", "2018-12-04 03:05:06.330520"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2373], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2752], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2752], ["room_id", 2373], ["created_at", "2018-12-04 03:05:06.339336"], ["updated_at", "2018-12-04 03:05:06.339336"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2373” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.343579"], ["last_sign_in_at", "2018-12-04 03:05:06.343579"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.344577"], ["id", 2752]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2373"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2373], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2373')
Rendered appointments/show.html.erb within layouts/application (13.2ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 216ms (Views: 211.6ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1kKpHEVgwk49upiZImhcHeHVhN4fhYCml2T6R4vpkzV.V2t8spnAC"], ["created_at", "2018-12-04 03:05:06.575044"], ["updated_at", "2018-12-04 03:05:06.575044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.579621"], ["updated_at", "2018-12-04 03:05:06.579621"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2374], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2753], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2753], ["room_id", 2374], ["created_at", "2018-12-04 03:05:06.588061"], ["updated_at", "2018-12-04 03:05:06.588061"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2374], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2753], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2753], ["room_id", 2374], ["created_at", "2018-12-04 03:05:06.596847"], ["updated_at", "2018-12-04 03:05:06.596847"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.601176"], ["last_sign_in_at", "2018-12-04 03:05:06.601176"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.602175"], ["id", 2753]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2753]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.7ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 20ms (Views: 10.3ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qaYZpgsL9PfRsp6100/wheAb32A4P8B1BIyUdZu2srkDYf74/JY.i"], ["created_at", "2018-12-04 03:05:06.637123"], ["updated_at", "2018-12-04 03:05:06.637123"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.641536"], ["updated_at", "2018-12-04 03:05:06.641536"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2375], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2754], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2754], ["room_id", 2375], ["created_at", "2018-12-04 03:05:06.649250"], ["updated_at", "2018-12-04 03:05:06.649250"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2375], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2754], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2754], ["room_id", 2375], ["created_at", "2018-12-04 03:05:06.656983"], ["updated_at", "2018-12-04 03:05:06.656983"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.661191"], ["last_sign_in_at", "2018-12-04 03:05:06.661191"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.662082"], ["id", 2754]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2754]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gPZ2294CeHPyorM6E2qu5.Qn0kHs7RUNEo9n42/cXLHMbNh8mqzVi"], ["created_at", "2018-12-04 03:05:06.685037"], ["updated_at", "2018-12-04 03:05:06.685037"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.689432"], ["updated_at", "2018-12-04 03:05:06.689432"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2376], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2755], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2755], ["room_id", 2376], ["created_at", "2018-12-04 03:05:06.697345"], ["updated_at", "2018-12-04 03:05:06.697345"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2439” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.701566"], ["last_sign_in_at", "2018-12-04 03:05:06.701566"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.702497"], ["id", 2755]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2439"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2439], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2439]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Wj2p4GxEL605Ul.tLasfoOQEUEmJyiDLskVNc76t45/3aA9xtfyiK"], ["created_at", "2018-12-04 03:05:06.724569"], ["updated_at", "2018-12-04 03:05:06.724569"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.728807"], ["updated_at", "2018-12-04 03:05:06.728807"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wKtFgZi9ECIXGYVKPMgQzONOHz69YJgqnWB95A4U/YtWi87KBAWpW"], ["created_at", "2018-12-04 03:05:06.736134"], ["updated_at", "2018-12-04 03:05:06.736134"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2377], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2757], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2757], ["room_id", 2377], ["created_at", "2018-12-04 03:05:06.744108"], ["updated_at", "2018-12-04 03:05:06.744108"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:05:06.747940"], ["id", 2440]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2377], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2757], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2757], ["room_id", 2377], ["created_at", "2018-12-04 03:05:06.755485"], ["updated_at", "2018-12-04 03:05:06.755485"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:05:06.759190"], ["id", 2441]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.763032"], ["last_sign_in_at", "2018-12-04 03:05:06.763032"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.763989"], ["id", 2756]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2757], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2377], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2757], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2377], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.7ms)
Rendered layouts/_header-admin.html.erb (3.2ms)

Completed 200 OK in 19ms (Views: 14.6ms | ActiveRecord: 2.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MlPtvVSblkFPqVoX.4nac.Fk.tl63vKp04QpK0Za9F8Lvvu9H5h7a"], ["created_at", "2018-12-04 03:05:06.796699"], ["updated_at", "2018-12-04 03:05:06.796699"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.800670"], ["updated_at", "2018-12-04 03:05:06.800670"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rYucFlXovMiTJHivtn4yOO6vff7MmCJSvY5iY5EWkGjr7.TRps3qC"], ["created_at", "2018-12-04 03:05:06.808176"], ["updated_at", "2018-12-04 03:05:06.808176"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2378], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2759], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2759], ["room_id", 2378], ["created_at", "2018-12-04 03:05:06.816211"], ["updated_at", "2018-12-04 03:05:06.816211"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:05:06.820282"], ["id", 2442]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2378], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2759], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2759], ["room_id", 2378], ["created_at", "2018-12-04 03:05:06.827829"], ["updated_at", "2018-12-04 03:05:06.827829"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:05:06.831672"], ["id", 2443]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.835532"], ["last_sign_in_at", "2018-12-04 03:05:06.835532"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.836474"], ["id", 2758]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2759], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2378], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2759], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2378], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.5ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 15ms (Views: 11.5ms | ActiveRecord: 1.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lN3QmRBOPgVGVobheYKWmur4KBxQnzp9md3V4N4LtCoBM8xZOolQG"], ["created_at", "2018-12-04 03:05:06.867875"], ["updated_at", "2018-12-04 03:05:06.867875"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.872080"], ["last_sign_in_at", "2018-12-04 03:05:06.872080"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.873080"], ["id", 2760]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.2ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XRIf4hC4oecvHbGs0GawP.WTv/MZl.hkxq3ZFX/ctvkbXfKrD/TlC"], ["created_at", "2018-12-04 03:05:06.902882"], ["updated_at", "2018-12-04 03:05:06.902882"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.906694"], ["last_sign_in_at", "2018-12-04 03:05:06.906694"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.907715"], ["id", 2761]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aR2VtD8yt012whhi3GMvJuE9cr7tXG/70scgqjD3.Vks7v1ULM0.q"], ["created_at", "2018-12-04 03:05:06.922907"], ["updated_at", "2018-12-04 03:05:06.922907"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.928608"], ["last_sign_in_at", "2018-12-04 03:05:06.928608"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.929669"], ["id", 2762]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UoEycnbpxS1TyukWhW1SL.rXDmQjGksA692HI46IqREq0CI/EbIKi"], ["created_at", "2018-12-04 03:05:06.951828"], ["updated_at", "2018-12-04 03:05:06.951828"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.956111"], ["last_sign_in_at", "2018-12-04 03:05:06.956111"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.956982"], ["id", 2763]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:05:06 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C0nvCN/LnQqYvp/0BzrOee3OeGInO2lB/k6mpRS6O6a0Bp9YEsYGC"], ["created_at", "2018-12-04 03:05:06.987214"], ["updated_at", "2018-12-04 03:05:06.987214"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:06.991716"], ["updated_at", "2018-12-04 03:05:06.991716"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2379” for 127.0.0.1 at 2018-12-04 01:05:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:06.996638"], ["last_sign_in_at", "2018-12-04 03:05:06.996638"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:06.997833"], ["id", 2764]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2379"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2379], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yZhhzMugoIsEcXlBXWocoOtp9xO.V.kog1tmeQB1L1SwYG3JWQm9K"], ["created_at", "2018-12-04 03:05:07.024173"], ["updated_at", "2018-12-04 03:05:07.024173"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.028563"], ["updated_at", "2018-12-04 03:05:07.028563"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2380” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.032910"], ["last_sign_in_at", "2018-12-04 03:05:07.032910"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.033994"], ["id", 2765]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2380"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2380], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.051289"], ["updated_at", "2018-12-04 03:05:07.051289"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2381” for 127.0.0.1 at 2018-12-04 01:05:07 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2381"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gqQq.MogmqKbqiWJ.DEuRO7zjFwFJIos2S70qLshSPtw6rEGeC1EK"], ["created_at", "2018-12-04 03:05:07.066656"], ["updated_at", "2018-12-04 03:05:07.066656"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.070851"], ["updated_at", "2018-12-04 03:05:07.070851"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2382” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.074557"], ["last_sign_in_at", "2018-12-04 03:05:07.074557"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.075594"], ["id", 2766]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2382"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.095901"], ["updated_at", "2018-12-04 03:05:07.095901"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2383” for 127.0.0.1 at 2018-12-04 01:05:07 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2383"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2vsADUkc0zqolXJu9muAMOvrRu9ud7LyqygWqVoBHQlMSF.7QiBl2"], ["created_at", "2018-12-04 03:05:07.111671"], ["updated_at", "2018-12-04 03:05:07.111671"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.115909"], ["updated_at", "2018-12-04 03:05:07.115909"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2384/edit” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.119655"], ["last_sign_in_at", "2018-12-04 03:05:07.119655"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.120756"], ["id", 2767]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2384"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2384], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YIAm.C8Q40bI3rXlfww4WuA2yi7OvaZ1Gqhz6X2bKtg3YUWtkHSk6"], ["created_at", "2018-12-04 03:05:07.146149"], ["updated_at", "2018-12-04 03:05:07.146149"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.150315"], ["updated_at", "2018-12-04 03:05:07.150315"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2385/edit” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.154412"], ["last_sign_in_at", "2018-12-04 03:05:07.154412"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.155537"], ["id", 2768]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2385"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2385], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.175404"], ["updated_at", "2018-12-04 03:05:07.175404"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2386” for 127.0.0.1 at 2018-12-04 01:05:07 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2386"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MmEUJk15jpAn.7Tzg0XcfuOjzJmV/FiU8vMwCT1v54o/5Lb56W4Yq"], ["created_at", "2018-12-04 03:05:07.189920"], ["updated_at", "2018-12-04 03:05:07.189920"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.195033"], ["last_sign_in_at", "2018-12-04 03:05:07.195033"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.196022"], ["id", 2769]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.202542"], ["updated_at", "2018-12-04 03:05:07.202542"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$r.XMzDGjxXoL.e6h6No25.Iy/5pZlDD4eIyJ/GD4TDqIjwoT9odKi"], ["created_at", "2018-12-04 03:05:07.217417"], ["updated_at", "2018-12-04 03:05:07.217417"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.222820"], ["last_sign_in_at", "2018-12-04 03:05:07.222820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.223987"], ["id", 2770]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.230355"], ["updated_at", "2018-12-04 03:05:07.230355"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.6ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cb1taDjsPZ01S2zuzYrMnehx7umTEAQQ0Kus4RzpF6lxO/CGdvL8a"], ["created_at", "2018-12-04 03:05:07.243512"], ["updated_at", "2018-12-04 03:05:07.243512"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.248942"], ["last_sign_in_at", "2018-12-04 03:05:07.248942"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.250019"], ["id", 2771]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ucNRceLkxXPzLABbpSBw.O6Zl.CHTbhxFeyGGPCW/caNrXGnMw742"], ["created_at", "2018-12-04 03:05:07.269044"], ["updated_at", "2018-12-04 03:05:07.269044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.274503"], ["last_sign_in_at", "2018-12-04 03:05:07.274503"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.275578"], ["id", 2772]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aMFapi6H58FJOocD7xtjKung65pjYRMdx4oJt/cM3sAC8Ydi6L8U2"], ["created_at", "2018-12-04 03:05:07.293602"], ["updated_at", "2018-12-04 03:05:07.293602"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.298988"], ["last_sign_in_at", "2018-12-04 03:05:07.298988"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.299994"], ["id", 2773]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$708PsQhZuYtyNELQNsLrW.uYGvYqd3RFjYoCx7HYF.AC70wd6bT/W"], ["created_at", "2018-12-04 03:05:07.314947"], ["updated_at", "2018-12-04 03:05:07.314947"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.319086"], ["updated_at", "2018-12-04 03:05:07.319086"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2389” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.323620"], ["last_sign_in_at", "2018-12-04 03:05:07.323620"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.324581"], ["id", 2774]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2389"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2389], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:05:07.332524"], ["id", 2389]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2389 Completed 302 Found in 7ms (ActiveRecord: 1.7ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mtFmpEruimFXSkEWd0aRJ.cFeVLD94ZI93hwvSDhAABH8YBXJb5F6"], ["created_at", "2018-12-04 03:05:07.347803"], ["updated_at", "2018-12-04 03:05:07.347803"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.352181"], ["updated_at", "2018-12-04 03:05:07.352181"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2390” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.356737"], ["last_sign_in_at", "2018-12-04 03:05:07.356737"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.357761"], ["id", 2775]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2390"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2390], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:05:07.365475"], ["id", 2390]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2390 Completed 302 Found in 7ms (ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e2stXiFwZhzN1CXpCT5gde61MBGIwhTjO9cfhVRMBnV7eJJtRiHnO"], ["created_at", "2018-12-04 03:05:07.379060"], ["updated_at", "2018-12-04 03:05:07.379060"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.383373"], ["updated_at", "2018-12-04 03:05:07.383373"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2391” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.387898"], ["last_sign_in_at", "2018-12-04 03:05:07.387898"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.388931"], ["id", 2776]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2391"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2391], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 1.0ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$H53NpBYOV6n2Od/psZBEtejIqEFvRuKi.0UhMsCZgf7jhX39Gixma"], ["created_at", "2018-12-04 03:05:07.416081"], ["updated_at", "2018-12-04 03:05:07.416081"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.423173"], ["updated_at", "2018-12-04 03:05:07.423173"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2392” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.427951"], ["last_sign_in_at", "2018-12-04 03:05:07.427951"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.428995"], ["id", 2777]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2392"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2392], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sF9c7VT98npAsd9v958b0eMaOwRsKq0P43L2NWO4eEz1TmXRAdJaW"], ["created_at", "2018-12-04 03:05:07.455904"], ["updated_at", "2018-12-04 03:05:07.455904"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.460963"], ["last_sign_in_at", "2018-12-04 03:05:07.460963"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.462188"], ["id", 2778]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IxalwkH.NN6sI0Fn0RajHusFjabuPGJEq.8bqA7EQntPiUR7eovBq"], ["created_at", "2018-12-04 03:05:07.477127"], ["updated_at", "2018-12-04 03:05:07.477127"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.481293"], ["updated_at", "2018-12-04 03:05:07.481293"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2393” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.485106"], ["last_sign_in_at", "2018-12-04 03:05:07.485106"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.486099"], ["id", 2779]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2393"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2393], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2393]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bALki03Ax4zlauiEqy0Zvew7w5aYvm4YABdPbe06RmgtPpTK0Vray"], ["created_at", "2018-12-04 03:05:07.506443"], ["updated_at", "2018-12-04 03:05:07.506443"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.510814"], ["updated_at", "2018-12-04 03:05:07.510814"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2394” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.515346"], ["last_sign_in_at", "2018-12-04 03:05:07.515346"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.516563"], ["id", 2780]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2394"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2394], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2394]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4Pfyi5OgQIu0j03VjjCzcuBzPwQdGMEdK8B1WkhRna5pw5OSFRRba"], ["created_at", "2018-12-04 03:05:07.536618"], ["updated_at", "2018-12-04 03:05:07.536618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.541145"], ["updated_at", "2018-12-04 03:05:07.541145"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2395” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.546430"], ["last_sign_in_at", "2018-12-04 03:05:07.546430"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.547672"], ["id", 2781]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2395"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vuMQKnd./RMFQBiPSpZ/O.GpWPMV5PE.1wqXujIeiOmP863eq3zyG"], ["created_at", "2018-12-04 03:05:07.563144"], ["updated_at", "2018-12-04 03:05:07.563144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.566960"], ["updated_at", "2018-12-04 03:05:07.566960"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2396” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.570371"], ["last_sign_in_at", "2018-12-04 03:05:07.570371"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.571293"], ["id", 2782]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2396"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rln.vhRme0YPm76xss52VeVfA/nJbZvyEjWC76n46Al9aKWqy45Ju"], ["created_at", "2018-12-04 03:05:07.584819"], ["updated_at", "2018-12-04 03:05:07.584819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.588831"], ["last_sign_in_at", "2018-12-04 03:05:07.588831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.589839"], ["id", 2783]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$88X1QG5yJYLNvza5LXdja.u4CD8Z8rmUCnt2ni2tgRrPtUAN9Oqyy"], ["created_at", "2018-12-04 03:05:07.614859"], ["updated_at", "2018-12-04 03:05:07.614859"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.618520"], ["updated_at", "2018-12-04 03:05:07.618520"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.621788"], ["updated_at", "2018-12-04 03:05:07.621788"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.624906"], ["updated_at", "2018-12-04 03:05:07.624906"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2397], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2784], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2784], ["room_id", 2397], ["created_at", "2018-12-04 03:05:07.632142"], ["updated_at", "2018-12-04 03:05:07.632142"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.636397"], ["last_sign_in_at", "2018-12-04 03:05:07.636397"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.637312"], ["id", 2784]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.1ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 20ms (Views: 7.2ms | ActiveRecord: 1.6ms)

Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8Rxr/lP/zxE5.y1syHY6Aer0wTZAx27srx5ZaFti6YLe63OQY8v6q"], ["created_at", "2018-12-04 03:05:07.674091"], ["updated_at", "2018-12-04 03:05:07.674091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.678024"], ["updated_at", "2018-12-04 03:05:07.678024"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.681599"], ["updated_at", "2018-12-04 03:05:07.681599"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:05:07.684658"], ["updated_at", "2018-12-04 03:05:07.684658"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2400], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2785], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2785], ["room_id", 2400], ["created_at", "2018-12-04 03:05:07.691741"], ["updated_at", "2018-12-04 03:05:07.691741"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 01:05:07 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:05:07.696012"], ["last_sign_in_at", "2018-12-04 03:05:07.696012"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:05:07.696990"], ["id", 2785]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mFRI3WUa/bgN9PK607AzjO37bchk431sdGsL9Z5.6xAyBLPtG54aS"], ["created_at", "2018-12-04 03:09:43.481613"], ["updated_at", "2018-12-04 03:09:43.481613"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (24.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$unRVEI3ayX/rT6zIz45/T.VO7BUVWvga4RPkh8EGLkRvMI2/azqKO"], ["created_at", "2018-12-04 03:09:43.490261"], ["updated_at", "2018-12-04 03:09:43.490261"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.5ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:43.535947"], ["updated_at", "2018-12-04 03:09:43.535947"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2403], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2787], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2787], ["room_id", 2403], ["created_at", "2018-12-04 03:09:43.581140"], ["updated_at", "2018-12-04 03:09:43.581140"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2446"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2446], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2403], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2787], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.6ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.6ms)

UserMailer#status_notification: processed outbound mail in 338.1ms Sent mail to 123@123.com (11.3ms) Date: Tue, 04 Dec 2018 01:09:43 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05eff7ead8b_311b1024f1c906f@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05eff7e8f27_311b1024f1c89c3";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05eff7e8f27_311b1024f1c89c3 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05eff7e8f27_311b1024f1c89c3 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05eff7e8f27_311b1024f1c89c3–

Completed 302 Found in 362ms (ActiveRecord: 2.3ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ByIA8HiH7D7OUytqYpZTm.T36HeGbGebqjkfHQF2c.qo2Ovg.LRAq"], ["created_at", "2018-12-04 03:09:43.977647"], ["updated_at", "2018-12-04 03:09:43.977647"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PXDtGd2KMY83CuCTYd1rZe.ey5sWWKg5M/neCTW965EF0bEL81ld."], ["created_at", "2018-12-04 03:09:43.985843"], ["updated_at", "2018-12-04 03:09:43.985843"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:43.990166"], ["updated_at", "2018-12-04 03:09:43.990166"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2404], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2789], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2789], ["room_id", 2404], ["created_at", "2018-12-04 03:09:44.005726"], ["updated_at", "2018-12-04 03:09:44.005726"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2447"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2447], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2404], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2789], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-04 03:09:44.017855"], ["id", 2447]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (6.0ms) Date: Tue, 04 Dec 2018 01:09:44 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05eff86f38_311b1024f1c9214@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05eff85fa1_311b1024f1c913d";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05eff85fa1_311b1024f1c913d Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05eff85fa1_311b1024f1c913d Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05eff85fa1_311b1024f1c913d–

Completed 302 Found in 22ms (ActiveRecord: 2.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q4okcQdMVI7v/9zpvDMgxuRLt272qe18JfTquxCNKe6DZz5blB/D."], ["created_at", "2018-12-04 03:09:44.042007"], ["updated_at", "2018-12-04 03:09:44.042007"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0dsjxiF0Pdnz/LDtq6PNCO.bzedQPHpQA2q19e3zw0mcRjrbPUw4u"], ["created_at", "2018-12-04 03:09:44.050455"], ["updated_at", "2018-12-04 03:09:44.050455"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:44.054613"], ["updated_at", "2018-12-04 03:09:44.054613"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2405], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2791], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2791], ["room_id", 2405], ["created_at", "2018-12-04 03:09:44.063362"], ["updated_at", "2018-12-04 03:09:44.063362"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.6ms

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NDS34AtZopEfR5LfqfIE..i36dc.wsf1MV.56tg2380DOv0IGNkLm"], ["created_at", "2018-12-04 03:09:44.083343"], ["updated_at", "2018-12-04 03:09:44.083343"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dUrzcLYy9uD9LTdJrJdw2OmMJLAn1cXqsrCgIXbVLL9vhhdoS0/SG"], ["created_at", "2018-12-04 03:09:44.091162"], ["updated_at", "2018-12-04 03:09:44.091162"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:44.095624"], ["updated_at", "2018-12-04 03:09:44.095624"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2406], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2793], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2793], ["room_id", 2406], ["created_at", "2018-12-04 03:09:44.104253"], ["updated_at", "2018-12-04 03:09:44.104253"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2449], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$FLUkU9Gf3jr8RMORajMLAOCInqZvxdWMwwa7VxNfw1NtaVD.4Bg8."], ["created_at", "2018-12-04 03:09:44.118131"], ["updated_at", "2018-12-04 03:09:44.118131"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2794"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "cWmi3yEsQyw1LZ3WBxIhyw"], ["updated_at", "2018-12-04 03:09:44.128028"], ["id", 2794]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 03:09:44.132321"], ["reset_sent_at", "2018-12-04 03:09:44.131486"], ["id", 2794]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.7ms)

UserMailer#password_reset: processed outbound mail in 10.6ms Sent mail to teste@unb.com.br (6.2ms) Date: Tue, 04 Dec 2018 01:09:44 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05eff8242ec_311b1024f1c9595@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05eff8232bd_311b1024f1c94c2";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05eff8232bd_311b1024f1c94c2 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/cWmi3yEsQyw1LZ3WBxIhyw/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05eff8232bd_311b1024f1c94c2 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/cWmi3yEsQyw1LZ3WBxIhyw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05eff8232bd_311b1024f1c94c2–

Redirected to test.host/login Completed 302 Found in 29ms (ActiveRecord: 3.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$dPWCx7dBv.k1JCXhRj0xSejCXXg2UXuLID9Z9uhpm4Q9UazS9avm."], ["created_at", "2018-12-04 03:09:44.161662"], ["updated_at", "2018-12-04 03:09:44.161662"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$MMSpwSUtYEHUQZkB8bfwbOKfP9ytDjgfQmHKnpE35nyKvaOyBi9E6"], ["created_at", "2018-12-04 03:09:44.179984"], ["updated_at", "2018-12-04 03:09:44.179984"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2796"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$XH5iHeQ5Bsv9cfmySahnOu7oktDqbzXd1L99P7oHnEHCQsns/A3kO"], ["updated_at", "2018-12-04 03:09:44.189474"], ["id", 2796]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 1.9ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$p39FzFIbeG1ZNClzNFzmZ.Bv7MbiIXhgmRIZtzhDahNkHkKTEI2aK"], ["created_at", "2018-12-04 03:09:44.202578"], ["updated_at", "2018-12-04 03:09:44.202578"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2797"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$FsHZvgNOuhGSvPu/.xkwNeH3muXqwcC1wYyAqX3X8r4XUtpmaJTA."], ["created_at", "2018-12-04 03:09:44.223465"], ["updated_at", "2018-12-04 03:09:44.223465"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2798"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 19ms (Views: 2.1ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$8fvmxOOTfm22h3gxnwz5H.VWAN19CEoqCB96oe5QyDIxrGfSCHf0O"], ["created_at", "2018-12-04 03:09:44.255333"], ["updated_at", "2018-12-04 03:09:44.255333"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2799"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 10ms (Views: 1.1ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$gbH.XhV4gdCoqMCF2DWqUeJ5OA8SPqUnFE3JroTornsaAu91U23my"], ["created_at", "2018-12-04 03:09:44.279863"], ["updated_at", "2018-12-04 03:09:44.279863"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2800"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$olOEKDTksd8u65cWXEESF.MPklKQBWcMh73XCvWyhjNoTWuFlwQiy"], ["created_at", "2018-12-04 03:09:44.299071"], ["updated_at", "2018-12-04 03:09:44.299071"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.2ms

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CKB4yI56dVl0IyjUW7GoTu.bi7zjV7zqtUb51ZdIb9ZhmgaeCc8Jy"], ["created_at", "2018-12-04 03:09:44.313968"], ["updated_at", "2018-12-04 03:09:44.313968"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.6ms

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jKfMF.vHfkoMIiw0Dq4PF.DaPAxYqfypxFLshYKsxc/Mftp59QYNa"], ["created_at", "2018-12-04 03:09:44.330964"], ["updated_at", "2018-12-04 03:09:44.330964"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:44.334671"], ["updated_at", "2018-12-04 03:09:44.334671"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2407], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2803], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2803], ["room_id", 2407], ["created_at", "2018-12-04 03:09:44.341468"], ["updated_at", "2018-12-04 03:09:44.341468"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lS0VA3TMVSQ7o/JqWRm0yedmFTaMnSVu2Pse8m0n66zatF14lQxLa"], ["created_at", "2018-12-04 03:09:44.357345"], ["updated_at", "2018-12-04 03:09:44.357345"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:44.361279"], ["updated_at", "2018-12-04 03:09:44.361279"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2408], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2804], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2804], ["room_id", 2408], ["created_at", "2018-12-04 03:09:44.368434"], ["updated_at", "2018-12-04 03:09:44.368434"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pgbo3TC9Sq9FD.qhEiqbFuVNUWySgAG6PbGPoYPiLFsGX1sax6o76"], ["created_at", "2018-12-04 03:09:44.420028"], ["updated_at", "2018-12-04 03:09:44.420028"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:44.423551"], ["updated_at", "2018-12-04 03:09:44.423551"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:09:44 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:44.435381"], ["last_sign_in_at", "2018-12-04 03:09:44.435381"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:44.436469"], ["id", 2805]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2409"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2409], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2805], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2805], ["room_id", 2409], ["created_at", "2018-12-04 03:09:44.454617"], ["updated_at", "2018-12-04 03:09:44.454617"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.0ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2409], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FVQLiH/Dft8cFyCpAXSmzO7Rx6QV9LrdF/fBwdjldo9zwj5l9thSK"], ["created_at", "2018-12-04 03:09:44.468968"], ["updated_at", "2018-12-04 03:09:44.468968"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:44.472914"], ["updated_at", "2018-12-04 03:09:44.472914"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:09:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:44.477764"], ["last_sign_in_at", "2018-12-04 03:09:44.477764"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:44.478700"], ["id", 2806]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2410"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2410], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2806], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2806], ["room_id", 2410], ["created_at", "2018-12-04 03:09:44.489440"], ["updated_at", "2018-12-04 03:09:44.489440"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yVw7A6HRYC0ybsdTFNsvY.zhlrbKDdgyX9nvmQWx8eZjd17XFRyii"], ["created_at", "2018-12-04 03:09:44.502155"], ["updated_at", "2018-12-04 03:09:44.502155"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:44.506193"], ["updated_at", "2018-12-04 03:09:44.506193"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:09:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:44.511474"], ["last_sign_in_at", "2018-12-04 03:09:44.511474"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:44.512435"], ["id", 2807]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2411", "user_id"=>"2807"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2411], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2807], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2807], ["room_id", 2411], ["created_at", "2018-12-04 03:09:44.523293"], ["updated_at", "2018-12-04 03:09:44.523293"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:09:44 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2411", "user_id"=>"2807"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2807], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2411], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2807], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2807], ["room_id", 2411], ["created_at", "2018-12-04 03:09:44.539293"], ["updated_at", "2018-12-04 03:09:44.539293"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rUNwHZHIrG9W6REiBOc/U.6SAsJPknR8SXvA6/EXBGREKMMcqqOgC"], ["created_at", "2018-12-04 03:09:44.551212"], ["updated_at", "2018-12-04 03:09:44.551212"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:44.555478"], ["updated_at", "2018-12-04 03:09:44.555478"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:09:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:44.560875"], ["last_sign_in_at", "2018-12-04 03:09:44.560875"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:44.561835"], ["id", 2808]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2412", "user_id"=>"2808"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2412], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2808], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2808], ["room_id", 2412], ["created_at", "2018-12-04 03:09:44.572645"], ["updated_at", "2018-12-04 03:09:44.572645"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 2.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:09:44 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2412", "user_id"=>"2808"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2808], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2412], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2808], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2808], ["room_id", 2412], ["created_at", "2018-12-04 03:09:44.587873"], ["updated_at", "2018-12-04 03:09:44.587873"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.6ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2412], ["user_id", 2808], ["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4NW8TS2jJGkXFk9HqGFhLOE.8T8NF9kKo71pPjU7VWznzJCCK5gem"], ["created_at", "2018-12-04 03:09:44.601740"], ["updated_at", "2018-12-04 03:09:44.601740"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:44.605679"], ["updated_at", "2018-12-04 03:09:44.605679"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:09:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:44.611212"], ["last_sign_in_at", "2018-12-04 03:09:44.611212"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:44.612200"], ["id", 2809]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2413", "user_id"=>"2809"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2413], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2809], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2809], ["room_id", 2413], ["created_at", "2018-12-04 03:09:44.623095"], ["updated_at", "2018-12-04 03:09:44.623095"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:09:44 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2413", "user_id"=>"2809"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2809], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2413], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2809], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2809], ["room_id", 2413], ["created_at", "2018-12-04 03:09:44.638533"], ["updated_at", "2018-12-04 03:09:44.638533"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.8ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2413], ["user_id", 2809], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VQYjYp8kUYIcfLHuDBkRrek0DKQB4.2Wg0J/gpxh1Gp3zf1xbUC6q"], ["created_at", "2018-12-04 03:09:44.651625"], ["updated_at", "2018-12-04 03:09:44.651625"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:44.655848"], ["updated_at", "2018-12-04 03:09:44.655848"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:09:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:44.660668"], ["last_sign_in_at", "2018-12-04 03:09:44.660668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:44.661617"], ["id", 2810]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2414"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2414], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mFW9.rJ5uqeuPz1RcgSz2uqKJ8HiGgUv.HMgE1HADLvHy2ZS2LUMm"], ["created_at", "2018-12-04 03:09:44.678251"], ["updated_at", "2018-12-04 03:09:44.678251"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:44.682169"], ["updated_at", "2018-12-04 03:09:44.682169"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:09:44 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:44.686879"], ["last_sign_in_at", "2018-12-04 03:09:44.686879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:44.687938"], ["id", 2811]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2415"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$idlTCea4LH6sgERaEpz7h.M3bu7cWRRYVgNG6lh2Jl361Gau/lOwi"], ["created_at", "2018-12-04 03:09:44.704095"], ["updated_at", "2018-12-04 03:09:44.704095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:44.708078"], ["updated_at", "2018-12-04 03:09:44.708078"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2416], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2812], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2812], ["room_id", 2416], ["created_at", "2018-12-04 03:09:44.715379"], ["updated_at", "2018-12-04 03:09:44.715379"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2416” for 127.0.0.1 at 2018-12-04 01:09:44 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:44.719609"], ["last_sign_in_at", "2018-12-04 03:09:44.719609"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:44.720825"], ["id", 2812]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2416"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2416], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2416')
Rendered appointments/show.html.erb within layouts/application (13.4ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 236ms (Views: 230.3ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$l1usiGPGsviI3n/ub7YSteYqCbzxvgq2ZwJiBS0OynWF95x2jicEi"], ["created_at", "2018-12-04 03:09:44.973193"], ["updated_at", "2018-12-04 03:09:44.973193"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:44.977929"], ["updated_at", "2018-12-04 03:09:44.977929"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2417], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2813], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2813], ["room_id", 2417], ["created_at", "2018-12-04 03:09:44.986792"], ["updated_at", "2018-12-04 03:09:44.986792"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2461/edit” for 127.0.0.1 at 2018-12-04 01:09:44 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:44.991524"], ["last_sign_in_at", "2018-12-04 03:09:44.991524"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:44.992692"], ["id", 2813]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2461"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2461], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.7ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8a.wilzzTfUetTwHYlEKZOEkMZdLh/9jvXqy7sH25VJmdm5CjtY62"], ["created_at", "2018-12-04 03:09:45.023921"], ["updated_at", "2018-12-04 03:09:45.023921"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.029689"], ["last_sign_in_at", "2018-12-04 03:09:45.029689"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.030577"], ["id", 2814]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/b5q4n/1VxkMeh7T3qG6re1rxsMW1YUN/VrKfjbR8/gUrt53bX80a"], ["created_at", "2018-12-04 03:09:45.056668"], ["updated_at", "2018-12-04 03:09:45.056668"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.061887"], ["updated_at", "2018-12-04 03:09:45.061887"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2418], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2815], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2815], ["room_id", 2418], ["created_at", "2018-12-04 03:09:45.070649"], ["updated_at", "2018-12-04 03:09:45.070649"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2418], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2815], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2815], ["room_id", 2418], ["created_at", "2018-12-04 03:09:45.079208"], ["updated_at", "2018-12-04 03:09:45.079208"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.083703"], ["last_sign_in_at", "2018-12-04 03:09:45.083703"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.084803"], ["id", 2815]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2815]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 19ms (Views: 9.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mAUyJ9i4x3LPtiUCJ/8cxeNNeCRgLx4qeaWUEmyUp3lyMeDn3soMq"], ["created_at", "2018-12-04 03:09:45.118805"], ["updated_at", "2018-12-04 03:09:45.118805"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.123778"], ["updated_at", "2018-12-04 03:09:45.123778"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2419], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2816], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2816], ["room_id", 2419], ["created_at", "2018-12-04 03:09:45.134948"], ["updated_at", "2018-12-04 03:09:45.134948"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2419], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2816], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2816], ["room_id", 2419], ["created_at", "2018-12-04 03:09:45.143227"], ["updated_at", "2018-12-04 03:09:45.143227"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.147988"], ["last_sign_in_at", "2018-12-04 03:09:45.147988"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.149078"], ["id", 2816]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2816]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fsQTks4HmzWRI.fCm.mAU.MkcSmXrrRY73VwYD150FgVz3d0dQjHO"], ["created_at", "2018-12-04 03:09:45.175144"], ["updated_at", "2018-12-04 03:09:45.175144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.179639"], ["updated_at", "2018-12-04 03:09:45.179639"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2420], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2817], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2817], ["room_id", 2420], ["created_at", "2018-12-04 03:09:45.187494"], ["updated_at", "2018-12-04 03:09:45.187494"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2466” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.191475"], ["last_sign_in_at", "2018-12-04 03:09:45.191475"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.192365"], ["id", 2817]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2466"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2466], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2466]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4cFeeEQqQTIajNOU15PA1eEJgrIzdDjfLxXvm3o.MqNtfv8Ur1V.2"], ["created_at", "2018-12-04 03:09:45.213085"], ["updated_at", "2018-12-04 03:09:45.213085"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.217101"], ["updated_at", "2018-12-04 03:09:45.217101"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$usR21zg1ldShQbHd5qMF6OLEtlo/WZ/WHNqB9RlyhZBkgUk2LnIX6"], ["created_at", "2018-12-04 03:09:45.224413"], ["updated_at", "2018-12-04 03:09:45.224413"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2421], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2819], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2819], ["room_id", 2421], ["created_at", "2018-12-04 03:09:45.232910"], ["updated_at", "2018-12-04 03:09:45.232910"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2467” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.240357"], ["last_sign_in_at", "2018-12-04 03:09:45.240357"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.241355"], ["id", 2818]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2467"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2467], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2421], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2819], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.4ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AdssSmetbZnjT9Y336kjiOp7HTYC.5ldBlwiEuG9M4I.oOPOHtMrW"], ["created_at", "2018-12-04 03:09:45.266654"], ["updated_at", "2018-12-04 03:09:45.266654"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.271156"], ["updated_at", "2018-12-04 03:09:45.271156"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZsftvLqnysDmbWTWrhu2xuQI1wbJIvaogJ1L7WcQvK.kXO2njDWl."], ["created_at", "2018-12-04 03:09:45.278588"], ["updated_at", "2018-12-04 03:09:45.278588"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2422], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2821], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2821], ["room_id", 2422], ["created_at", "2018-12-04 03:09:45.286704"], ["updated_at", "2018-12-04 03:09:45.286704"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2468” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.292082"], ["last_sign_in_at", "2018-12-04 03:09:45.292082"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.293113"], ["id", 2820]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2468"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2468], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2422], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2821], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 2.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZKLfESxFLj6iyXNzpBdxeeQ0aP7sEulWtJ1zb4t0NkP08NxdUQA.q"], ["created_at", "2018-12-04 03:09:45.315910"], ["updated_at", "2018-12-04 03:09:45.315910"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.320469"], ["updated_at", "2018-12-04 03:09:45.320469"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$G.Lq8bCkYWRXH8U9vC4F3.EIR5axwoPD8E5baaBHho2Hz5LZwo6hW"], ["created_at", "2018-12-04 03:09:45.327652"], ["updated_at", "2018-12-04 03:09:45.327652"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2423], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2823], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2823], ["room_id", 2423], ["created_at", "2018-12-04 03:09:45.335330"], ["updated_at", "2018-12-04 03:09:45.335330"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2469” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.340687"], ["last_sign_in_at", "2018-12-04 03:09:45.340687"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.341841"], ["id", 2822]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2469"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2469], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2423], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2823], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-04 03:09:45.353801"], ["id", 2469]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms Sent mail to 123@123.com (5.8ms) Date: Tue, 04 Dec 2018 01:09:45 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05eff958ed8_311b1024f1c1022e@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05eff957ffb_311b1024f1c101a0";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05eff957ffb_311b1024f1c101a0 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05eff957ffb_311b1024f1c101a0 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05eff957ffb_311b1024f1c101a0–

Completed 302 Found in 21ms (ActiveRecord: 2.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sLrID2ke0RQX.coTAO8cDeu50URKM0Rd0q2Fn8ygkF02fxJKqZmGy"], ["created_at", "2018-12-04 03:09:45.378714"], ["updated_at", "2018-12-04 03:09:45.378714"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.382995"], ["updated_at", "2018-12-04 03:09:45.382995"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VzOEM5Rlcn8dJSKoXvcwy.b27tHB4vsKqRE2Rrsf0EwYwA3dqQSYS"], ["created_at", "2018-12-04 03:09:45.391222"], ["updated_at", "2018-12-04 03:09:45.391222"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2424], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2825], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2825], ["room_id", 2424], ["created_at", "2018-12-04 03:09:45.399589"], ["updated_at", "2018-12-04 03:09:45.399589"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:09:45.403964"], ["id", 2470]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2424], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2825], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2825], ["room_id", 2424], ["created_at", "2018-12-04 03:09:45.411669"], ["updated_at", "2018-12-04 03:09:45.411669"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:09:45.415564"], ["id", 2471]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.419477"], ["last_sign_in_at", "2018-12-04 03:09:45.419477"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.420510"], ["id", 2824]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2825], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2424], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2825], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2424], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.4ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 18ms (Views: 13.6ms | ActiveRecord: 2.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FUj5YqqujU888wSeFUSnoe.JLy2MerR4S6L9EV.DUidQP2SmypXg2"], ["created_at", "2018-12-04 03:09:45.452922"], ["updated_at", "2018-12-04 03:09:45.452922"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.457418"], ["updated_at", "2018-12-04 03:09:45.457418"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KQHpKqZtzh9H76CU8u.Dzuni9VOORjS2lp4aLTcFocFfhj2tdiAOm"], ["created_at", "2018-12-04 03:09:45.465275"], ["updated_at", "2018-12-04 03:09:45.465275"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2425], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2827], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2827], ["room_id", 2425], ["created_at", "2018-12-04 03:09:45.473618"], ["updated_at", "2018-12-04 03:09:45.473618"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:09:45.477381"], ["id", 2472]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2425], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2827], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2827], ["room_id", 2425], ["created_at", "2018-12-04 03:09:45.484017"], ["updated_at", "2018-12-04 03:09:45.484017"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:09:45.487293"], ["id", 2473]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.491012"], ["last_sign_in_at", "2018-12-04 03:09:45.491012"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.491915"], ["id", 2826]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2827], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2425], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2827], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2425], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.1ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 1.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$14rjFXNSwIAJFvHGU3bDeuV/6i3F7ew9reFuMKsQJ5svgDVFBVsPq"], ["created_at", "2018-12-04 03:09:45.521640"], ["updated_at", "2018-12-04 03:09:45.521640"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.525836"], ["last_sign_in_at", "2018-12-04 03:09:45.525836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.526951"], ["id", 2828]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (5.9ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 11.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6XsAvWYKbSxfDDWR/3PTX.B48dxcVh0dzYknneMK3Tue69R4lihCq"], ["created_at", "2018-12-04 03:09:45.555972"], ["updated_at", "2018-12-04 03:09:45.555972"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.559961"], ["last_sign_in_at", "2018-12-04 03:09:45.559961"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.560852"], ["id", 2829]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xDX7nGOAMc0GSPiU45Ddl.eNRXeCqG6UB31OK7AQtpehKNaadNt22"], ["created_at", "2018-12-04 03:09:45.574881"], ["updated_at", "2018-12-04 03:09:45.574881"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.579330"], ["last_sign_in_at", "2018-12-04 03:09:45.579330"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.580313"], ["id", 2830]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eFRPNeoCD66t8Xy1aOmWuu513Zgo6fnAm1TOlc7AqCW3S4Rv9Z0AG"], ["created_at", "2018-12-04 03:09:45.603562"], ["updated_at", "2018-12-04 03:09:45.603562"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.609028"], ["last_sign_in_at", "2018-12-04 03:09:45.609028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.610318"], ["id", 2831]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:09:45 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OX/7qr0qX4kLL93mCZ2UP.t0XcnVKVsrEP6zBvBcDvJOQwTKJNohO"], ["created_at", "2018-12-04 03:09:45.645717"], ["updated_at", "2018-12-04 03:09:45.645717"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.649724"], ["updated_at", "2018-12-04 03:09:45.649724"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2426” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.653491"], ["last_sign_in_at", "2018-12-04 03:09:45.653491"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.654467"], ["id", 2832]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2426"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2426], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AIQg0mM7VsPL0P3L9eD8b.Jf.0XhAmPMsNjY628B9SglCsdHGF5Bq"], ["created_at", "2018-12-04 03:09:45.675499"], ["updated_at", "2018-12-04 03:09:45.675499"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.679313"], ["updated_at", "2018-12-04 03:09:45.679313"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2427” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.683336"], ["last_sign_in_at", "2018-12-04 03:09:45.683336"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.684257"], ["id", 2833]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2427"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2427], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.700439"], ["updated_at", "2018-12-04 03:09:45.700439"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2428” for 127.0.0.1 at 2018-12-04 01:09:45 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2428"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZiUnqQN.MMWBwWBz/S52B.4GfsaHkxYU7q70aUrBW.TCJDR0eQtOa"], ["created_at", "2018-12-04 03:09:45.717330"], ["updated_at", "2018-12-04 03:09:45.717330"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.721853"], ["updated_at", "2018-12-04 03:09:45.721853"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2429” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.726013"], ["last_sign_in_at", "2018-12-04 03:09:45.726013"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.727142"], ["id", 2834]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2429"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.748377"], ["updated_at", "2018-12-04 03:09:45.748377"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2430” for 127.0.0.1 at 2018-12-04 01:09:45 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2430"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LhxEtxp62mhXmUBjYaFgQOnb4UX8D/ZujCh7VKiRuAxemoz4GWZn6"], ["created_at", "2018-12-04 03:09:45.765122"], ["updated_at", "2018-12-04 03:09:45.765122"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.770019"], ["updated_at", "2018-12-04 03:09:45.770019"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2431/edit” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.773943"], ["last_sign_in_at", "2018-12-04 03:09:45.773943"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.774968"], ["id", 2835]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2431"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2431], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sExGmhv.mw9Cjvzv0TcRkO8IdpMyMjNAhIxQrFrxqj8IZEz9Nepti"], ["created_at", "2018-12-04 03:09:45.800908"], ["updated_at", "2018-12-04 03:09:45.800908"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.805348"], ["updated_at", "2018-12-04 03:09:45.805348"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2432/edit” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.809206"], ["last_sign_in_at", "2018-12-04 03:09:45.809206"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.810251"], ["id", 2836]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2432"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2432], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.830638"], ["updated_at", "2018-12-04 03:09:45.830638"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2433” for 127.0.0.1 at 2018-12-04 01:09:45 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2433"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WqI2z5rMMmBhNWsWa2IWpu/DcPUNVcKYZp42lGqDV7Z25mBOLbbLq"], ["created_at", "2018-12-04 03:09:45.846399"], ["updated_at", "2018-12-04 03:09:45.846399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.851961"], ["last_sign_in_at", "2018-12-04 03:09:45.851961"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.852974"], ["id", 2837]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.859480"], ["updated_at", "2018-12-04 03:09:45.859480"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b0rSbnSEZuj3T5C/o6ypiOWwTPhfLtIfNGuC5p3V3rgt7PdAqCyEe"], ["created_at", "2018-12-04 03:09:45.875097"], ["updated_at", "2018-12-04 03:09:45.875097"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.880596"], ["last_sign_in_at", "2018-12-04 03:09:45.880596"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.881674"], ["id", 2838]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.888262"], ["updated_at", "2018-12-04 03:09:45.888262"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P.fZmcAMvGkfzV.MTfKXNe46XmeGdGZFJ8GltmUzNpzU1lmVdwiaq"], ["created_at", "2018-12-04 03:09:45.903346"], ["updated_at", "2018-12-04 03:09:45.903346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.909639"], ["last_sign_in_at", "2018-12-04 03:09:45.909639"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.910773"], ["id", 2839]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms)

Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.12Hy8z3mqJK8TjjTgDufuvHFujbI.8psB5kBI0fbs9ea9tQ4WvuC"], ["created_at", "2018-12-04 03:09:45.932527"], ["updated_at", "2018-12-04 03:09:45.932527"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.938792"], ["last_sign_in_at", "2018-12-04 03:09:45.938792"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.939884"], ["id", 2840]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$E265iGngTA4XvzKNO5giluG0l1aZmi7kcPehWvvDxZcR4fF2RPqtK"], ["created_at", "2018-12-04 03:09:45.960310"], ["updated_at", "2018-12-04 03:09:45.960310"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.966166"], ["last_sign_in_at", "2018-12-04 03:09:45.966166"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.967372"], ["id", 2841]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VLtM9cUA1VbkL4QLdAPCn.isQ1k1/XN6ohfArte7aQjsUwh93968K"], ["created_at", "2018-12-04 03:09:45.982905"], ["updated_at", "2018-12-04 03:09:45.982905"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:45.987326"], ["updated_at", "2018-12-04 03:09:45.987326"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2436” for 127.0.0.1 at 2018-12-04 01:09:45 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:45.992747"], ["last_sign_in_at", "2018-12-04 03:09:45.992747"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:45.993797"], ["id", 2842]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2436"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2436], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:09:46.002050"], ["id", 2436]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2436 Completed 302 Found in 7ms (ActiveRecord: 1.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mmorPWLobN/P98kdozfX6OTNoPiiXeLxzHQ0UkDETUVzVUQPeeqNu"], ["created_at", "2018-12-04 03:09:46.016938"], ["updated_at", "2018-12-04 03:09:46.016938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:46.021338"], ["updated_at", "2018-12-04 03:09:46.021338"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2437” for 127.0.0.1 at 2018-12-04 01:09:46 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:46.032415"], ["last_sign_in_at", "2018-12-04 03:09:46.032415"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:46.033640"], ["id", 2843]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2437"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2437], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:09:46.041792"], ["id", 2437]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2437 Completed 302 Found in 7ms (ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WxwtlMx6GSWeNvlHeoj2vuPFTcsYc3K2ZC.KpGWpsFn5k7jEXxYK6"], ["created_at", "2018-12-04 03:09:46.055509"], ["updated_at", "2018-12-04 03:09:46.055509"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:46.060209"], ["updated_at", "2018-12-04 03:09:46.060209"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2438” for 127.0.0.1 at 2018-12-04 01:09:46 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:46.065216"], ["last_sign_in_at", "2018-12-04 03:09:46.065216"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:46.066137"], ["id", 2844]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2438"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2438], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 14ms (Views: 9.3ms | ActiveRecord: 0.8ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sNOeHMT59EFgh3GIWQF56u6fhiwFtPn..GHQx5X7UpohOJjhgqLTu"], ["created_at", "2018-12-04 03:09:46.096636"], ["updated_at", "2018-12-04 03:09:46.096636"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:46.102619"], ["updated_at", "2018-12-04 03:09:46.102619"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2439” for 127.0.0.1 at 2018-12-04 01:09:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:46.108824"], ["last_sign_in_at", "2018-12-04 03:09:46.108824"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:46.109993"], ["id", 2845]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2439"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2439], ["LIMIT", 1]]
 (0.5ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 14ms (Views: 9.2ms | ActiveRecord: 1.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1kNgaItIRABzW3rsjaOnaO5PqHc3qhWisTfJtKtafHaXm.W6QyaS."], ["created_at", "2018-12-04 03:09:46.139763"], ["updated_at", "2018-12-04 03:09:46.139763"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:09:46 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:46.145289"], ["last_sign_in_at", "2018-12-04 03:09:46.145289"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:46.146421"], ["id", 2846]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wnO5v2psTcaLVneT90KsA.hDZFNYJf2Bs8BJaCgk/mPB1.ev01GdC"], ["created_at", "2018-12-04 03:09:46.162420"], ["updated_at", "2018-12-04 03:09:46.162420"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:46.167663"], ["updated_at", "2018-12-04 03:09:46.167663"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2440” for 127.0.0.1 at 2018-12-04 01:09:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:46.172462"], ["last_sign_in_at", "2018-12-04 03:09:46.172462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:46.173572"], ["id", 2847]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2440"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2440], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2440]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e7zC19JC9RlDtKQ1Nhq4cugblVggVZ02VTDRWOc/fjRcp9bybh/6a"], ["created_at", "2018-12-04 03:09:46.195252"], ["updated_at", "2018-12-04 03:09:46.195252"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:46.199832"], ["updated_at", "2018-12-04 03:09:46.199832"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2441” for 127.0.0.1 at 2018-12-04 01:09:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:46.203948"], ["last_sign_in_at", "2018-12-04 03:09:46.203948"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:46.205008"], ["id", 2848]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2441"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2441], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2441]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xu.Ae.hsLUY4aj2WhNPVie7Fdu0jZ1kUjw8Q3ERCXh8AJq1XHF3Qu"], ["created_at", "2018-12-04 03:09:46.224832"], ["updated_at", "2018-12-04 03:09:46.224832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:46.229435"], ["updated_at", "2018-12-04 03:09:46.229435"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2442” for 127.0.0.1 at 2018-12-04 01:09:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:46.233510"], ["last_sign_in_at", "2018-12-04 03:09:46.233510"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:46.234514"], ["id", 2849]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2442"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IMkQomblQWNTejXxkH310u6lhbtIYcewhlRwnAZ4e4NjCgRra4vBa"], ["created_at", "2018-12-04 03:09:46.251420"], ["updated_at", "2018-12-04 03:09:46.251420"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:46.256073"], ["updated_at", "2018-12-04 03:09:46.256073"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2443” for 127.0.0.1 at 2018-12-04 01:09:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:46.260494"], ["last_sign_in_at", "2018-12-04 03:09:46.260494"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:46.261489"], ["id", 2850]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2443"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VElJ3nHicPqbVVkMAIm.MuIB9lZEu/teXU/ke8K0MhIjv2Sh9Oneq"], ["created_at", "2018-12-04 03:09:46.276664"], ["updated_at", "2018-12-04 03:09:46.276664"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 01:09:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:46.281386"], ["last_sign_in_at", "2018-12-04 03:09:46.281386"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:46.282466"], ["id", 2851]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O7JJZz9LqNSE6nFOkPix9.LRliogfe7WhrFiab6YgXSsjzz3DModK"], ["created_at", "2018-12-04 03:09:46.309603"], ["updated_at", "2018-12-04 03:09:46.309603"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:46.314492"], ["updated_at", "2018-12-04 03:09:46.314492"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:46.318252"], ["updated_at", "2018-12-04 03:09:46.318252"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:46.321905"], ["updated_at", "2018-12-04 03:09:46.321905"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2444], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2852], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2852], ["room_id", 2444], ["created_at", "2018-12-04 03:09:46.330360"], ["updated_at", "2018-12-04 03:09:46.330360"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 01:09:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:46.335261"], ["last_sign_in_at", "2018-12-04 03:09:46.335261"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:46.336297"], ["id", 2852]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.1ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 22ms (Views: 8.0ms | ActiveRecord: 1.7ms)

Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.16jJK9h1LwVz5SaPwCdN.b/Q99.5aXlYuDF3wMTfCnRhOGVhYpvO"], ["created_at", "2018-12-04 03:09:46.377105"], ["updated_at", "2018-12-04 03:09:46.377105"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:46.381851"], ["updated_at", "2018-12-04 03:09:46.381851"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:46.386085"], ["updated_at", "2018-12-04 03:09:46.386085"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:09:46.389719"], ["updated_at", "2018-12-04 03:09:46.389719"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2447], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2853], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2853], ["room_id", 2447], ["created_at", "2018-12-04 03:09:46.398446"], ["updated_at", "2018-12-04 03:09:46.398446"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 01:09:46 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:09:46.403309"], ["last_sign_in_at", "2018-12-04 03:09:46.403309"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:09:46.404517"], ["id", 2853]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$rvM6uDrOGmETbcfGt3qz4OOPvtJGwPNNm9/3ZntHNFf9Jet1EPa/C"], ["created_at", "2018-12-04 03:11:43.160483"], ["updated_at", "2018-12-04 03:11:43.160483"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-04 01:11:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (48.0ms)
Rendered users/sessions/new.html.erb within layouts/application (343.7ms)

Completed 200 OK in 372ms (Views: 352.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-04 01:11:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-04 03:11:43.653378"], ["last_sign_in_at", "2018-12-04 03:11:43.653378"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-04 03:11:43.654569"], ["id", 2854]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-04 01:11:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2854], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-04 01:11:43 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2854], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 23ms (Views: 11.0ms | ActiveRecord: 4.6ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (14.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vgh30oDLq7CzJzoS2NQwjOcFcG/DHEGbRERTA3UZe0dEwb3XZoIE6"], ["created_at", "2018-12-04 03:12:49.774696"], ["updated_at", "2018-12-04 03:12:49.774696"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$U.FDTDhTgVHY6MMVVAPj5.VDjM8O8VYvf..wPVycFIH/AjOPZg4Ca"], ["created_at", "2018-12-04 03:12:49.800319"], ["updated_at", "2018-12-04 03:12:49.800319"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (1.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:49.821464"], ["updated_at", "2018-12-04 03:12:49.821464"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2450], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2856], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2856], ["room_id", 2450], ["created_at", "2018-12-04 03:12:49.871704"], ["updated_at", "2018-12-04 03:12:49.871704"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2476"}
Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2476], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2450], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2856], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (3.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.5ms)

UserMailer#status_notification: processed outbound mail in 320.0ms Sent mail to 123@123.com (11.1ms) Date: Tue, 04 Dec 2018 01:12:50 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05f0b23982f_31f7aecf185915a@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f0b237a9d_31f7aecf185909e";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f0b237a9d_31f7aecf185909e Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05f0b237a9d_31f7aecf185909e Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05f0b237a9d_31f7aecf185909e–

Completed 302 Found in 348ms (ActiveRecord: 2.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Kic6EEtPoKcTjLrKc9LJMO1Kw58eZjd27wrazKLwOAXwlrIS6BGN6"], ["created_at", "2018-12-04 03:12:50.255514"], ["updated_at", "2018-12-04 03:12:50.255514"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.Vw8daZMz3Ak8YTbu6/i5usbjHqJSr3gTQ4fyzblYz9j3U9.DIAVa"], ["created_at", "2018-12-04 03:12:50.264322"], ["updated_at", "2018-12-04 03:12:50.264322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:50.268909"], ["updated_at", "2018-12-04 03:12:50.268909"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2451], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2858], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2858], ["room_id", 2451], ["created_at", "2018-12-04 03:12:50.280557"], ["updated_at", "2018-12-04 03:12:50.280557"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2477"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2477], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2451], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2858], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-04 03:12:50.294030"], ["id", 2477]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms Sent mail to 123@123.com (6.0ms) Date: Tue, 04 Dec 2018 01:12:50 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05f0b24a6f5_31f7aecf1859331@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f0b249782_31f7aecf18592fc";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f0b249782_31f7aecf18592fc Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05f0b249782_31f7aecf18592fc Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05f0b249782_31f7aecf18592fc–

Completed 302 Found in 23ms (ActiveRecord: 3.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BmztpaqvG04xUCF0ukyNbubZJfoTbhXPTl.r5qb0oW17opTAwJft."], ["created_at", "2018-12-04 03:12:50.320852"], ["updated_at", "2018-12-04 03:12:50.320852"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$08lhjOdqyPutsgqWABuE2.sr7/zO9phhMEk5NHz24sgH6dTosBEsq"], ["created_at", "2018-12-04 03:12:50.332241"], ["updated_at", "2018-12-04 03:12:50.332241"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:50.339209"], ["updated_at", "2018-12-04 03:12:50.339209"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2452], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2860], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2860], ["room_id", 2452], ["created_at", "2018-12-04 03:12:50.353701"], ["updated_at", "2018-12-04 03:12:50.353701"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.3ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 6.2ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5J9u6u5cItIKdlSiTBqYieW08zUNkbxsJv5nmojpmE.kGAQkSTK7e"], ["created_at", "2018-12-04 03:12:50.375980"], ["updated_at", "2018-12-04 03:12:50.375980"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$o95X1IstJiZ9b5ANigEmjeeLk.qQZmS1uC7QNfIa/1rbNl7sEFE6K"], ["created_at", "2018-12-04 03:12:50.386426"], ["updated_at", "2018-12-04 03:12:50.386426"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:50.393148"], ["updated_at", "2018-12-04 03:12:50.393148"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2453], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2862], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2862], ["room_id", 2453], ["created_at", "2018-12-04 03:12:50.405576"], ["updated_at", "2018-12-04 03:12:50.405576"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2479], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$1A801mPV2qFp9vMjf.0RluCCXOPzOd3UAPL1OBL6fRc0hk2TcpvDi"], ["created_at", "2018-12-04 03:12:50.428044"], ["updated_at", "2018-12-04 03:12:50.428044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2863"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "OXW9Pb6y4bcQ52MUSQuXUQ"], ["updated_at", "2018-12-04 03:12:50.438165"], ["id", 2863]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 03:12:50.442443"], ["reset_sent_at", "2018-12-04 03:12:50.441656"], ["id", 2863]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.7ms)

UserMailer#password_reset: processed outbound mail in 10.1ms Sent mail to teste@unb.com.br (6.1ms) Date: Tue, 04 Dec 2018 01:12:50 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05f0b26fe40_31f7aecf1859698@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f0b26eecd_31f7aecf185957d";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f0b26eecd_31f7aecf185957d Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/OXW9Pb6y4bcQ52MUSQuXUQ/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05f0b26eecd_31f7aecf185957d Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/OXW9Pb6y4bcQ52MUSQuXUQ/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05f0b26eecd_31f7aecf185957d–

Redirected to test.host/login Completed 302 Found in 29ms (ActiveRecord: 2.6ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$.yQ.qBxqfbLBzPaOPh9EvuSvTbs.5T5rVr.w1xh9HXkUAOredZZxi"], ["created_at", "2018-12-04 03:12:50.471552"], ["updated_at", "2018-12-04 03:12:50.471552"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.1ms

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$SDAAeUBcZv5dYTtkpyaoWOk6EwMsGuZbpKuxUV2su8yM1386AdTf."], ["created_at", "2018-12-04 03:12:50.490469"], ["updated_at", "2018-12-04 03:12:50.490469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2865"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$aSct4xrQbis9sTLgzyPNeeEV07TVwbdn4YsE1AoqtgqDtC2pD.Pwa"], ["updated_at", "2018-12-04 03:12:50.500136"], ["id", 2865]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 1.6ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$ZI.kWCikbi98cHyol4y8beVJdsmsXipiibPnMOJgI6bWkEtuC6kda"], ["created_at", "2018-12-04 03:12:50.513088"], ["updated_at", "2018-12-04 03:12:50.513088"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2866"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$O209X6bzULtm5d00lHJsy.kzHSsR6aUvVv3/0x9OkXfTj9zvk9zuq"], ["created_at", "2018-12-04 03:12:50.531774"], ["updated_at", "2018-12-04 03:12:50.531774"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2867"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.6ms)

Completed 200 OK in 19ms (Views: 2.5ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$3qnTqdb5l6/psPJ/yYWxsOS.dMhe/lL29dAUakIG1KlcV2e2g1YZy"], ["created_at", "2018-12-04 03:12:50.564630"], ["updated_at", "2018-12-04 03:12:50.564630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2868"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$F0xzV/C2JKAvg8Fo6g.s2eKJ8mMq/JSMZVSvOTIjk/buRxWZ0UxUW"], ["created_at", "2018-12-04 03:12:50.585490"], ["updated_at", "2018-12-04 03:12:50.585490"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2869"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$opV6i7VZRtO4kYq/FCK1juKs0QXhh3X5vt27HibmPNgMGpC19iieu"], ["created_at", "2018-12-04 03:12:50.604306"], ["updated_at", "2018-12-04 03:12:50.604306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.1ms

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/dxlyCPRzaSsRm.tCULmNuBLYrfxb6nkyn8bzMAc0DUtBBefLpt4u"], ["created_at", "2018-12-04 03:12:50.621640"], ["updated_at", "2018-12-04 03:12:50.621640"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.4ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$z/Holae/afaFqIAZivtYNellMCKV4BzbxIeRNkCR9DeCd3aFz7Yui"], ["created_at", "2018-12-04 03:12:50.639006"], ["updated_at", "2018-12-04 03:12:50.639006"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:50.643119"], ["updated_at", "2018-12-04 03:12:50.643119"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2454], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2872], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2872], ["room_id", 2454], ["created_at", "2018-12-04 03:12:50.650417"], ["updated_at", "2018-12-04 03:12:50.650417"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$T0s1pENR03cRF/PHInJ0p.vYgwaX39vbIr.LVTKonGUv4rF0Mjrr2"], ["created_at", "2018-12-04 03:12:50.666330"], ["updated_at", "2018-12-04 03:12:50.666330"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:50.670396"], ["updated_at", "2018-12-04 03:12:50.670396"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2455], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2873], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2873], ["room_id", 2455], ["created_at", "2018-12-04 03:12:50.677901"], ["updated_at", "2018-12-04 03:12:50.677901"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YL/5ZpsWGRGv5JDf3TU12..OfZ6.zbb5TF8iqbCIP1Tj6Amfs6HUq"], ["created_at", "2018-12-04 03:12:50.729574"], ["updated_at", "2018-12-04 03:12:50.729574"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:50.733270"], ["updated_at", "2018-12-04 03:12:50.733270"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:12:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:50.746204"], ["last_sign_in_at", "2018-12-04 03:12:50.746204"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:50.747297"], ["id", 2874]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2456"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2456], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2874], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2874], ["room_id", 2456], ["created_at", "2018-12-04 03:12:50.764602"], ["updated_at", "2018-12-04 03:12:50.764602"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2456], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6w50vYuulFjdmMXD8oUQ.OFSzveJzPd0FKtBdP4uvpsrdtQR3K48K"], ["created_at", "2018-12-04 03:12:50.779518"], ["updated_at", "2018-12-04 03:12:50.779518"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:50.783450"], ["updated_at", "2018-12-04 03:12:50.783450"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:12:50 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:50.788507"], ["last_sign_in_at", "2018-12-04 03:12:50.788507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:50.789483"], ["id", 2875]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2457"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2457], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2875], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2875], ["room_id", 2457], ["created_at", "2018-12-04 03:12:50.800465"], ["updated_at", "2018-12-04 03:12:50.800465"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yeBWmFEmhvRCL.s6TmN4xOu84WznfyQ3E5AGL9DZZOtYKd0L4GOOG"], ["created_at", "2018-12-04 03:12:50.813238"], ["updated_at", "2018-12-04 03:12:50.813238"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:50.817624"], ["updated_at", "2018-12-04 03:12:50.817624"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:12:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:50.823220"], ["last_sign_in_at", "2018-12-04 03:12:50.823220"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:50.824327"], ["id", 2876]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2458", "user_id"=>"2876"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2458], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2876], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2876], ["room_id", 2458], ["created_at", "2018-12-04 03:12:50.836268"], ["updated_at", "2018-12-04 03:12:50.836268"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:12:50 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2458", "user_id"=>"2876"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2876], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2458], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2876], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2876], ["room_id", 2458], ["created_at", "2018-12-04 03:12:50.852907"], ["updated_at", "2018-12-04 03:12:50.852907"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 4.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pm0KeJyUJrbQ3ABEssZzl.8TrpiV2/b/yW7W1XTG4V2XZFzy.gkKK"], ["created_at", "2018-12-04 03:12:50.866197"], ["updated_at", "2018-12-04 03:12:50.866197"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:50.870594"], ["updated_at", "2018-12-04 03:12:50.870594"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:12:50 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:50.876125"], ["last_sign_in_at", "2018-12-04 03:12:50.876125"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:50.877289"], ["id", 2877]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2459", "user_id"=>"2877"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2459], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2877], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2877], ["room_id", 2459], ["created_at", "2018-12-04 03:12:50.889082"], ["updated_at", "2018-12-04 03:12:50.889082"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.6ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:12:50 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2459", "user_id"=>"2877"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2877], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2459], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2877], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2877], ["room_id", 2459], ["created_at", "2018-12-04 03:12:50.905452"], ["updated_at", "2018-12-04 03:12:50.905452"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2459], ["user_id", 2877], ["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$r/z7HxZuY74XWODE2runkOqL9ZBADlw/UX2N4ldTDnt7xcGrSjQcq"], ["created_at", "2018-12-04 03:12:50.920818"], ["updated_at", "2018-12-04 03:12:50.920818"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:50.925421"], ["updated_at", "2018-12-04 03:12:50.925421"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:12:50 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:50.931355"], ["last_sign_in_at", "2018-12-04 03:12:50.931355"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:50.932462"], ["id", 2878]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2460", "user_id"=>"2878"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2460], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2878], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2878], ["room_id", 2460], ["created_at", "2018-12-04 03:12:50.944308"], ["updated_at", "2018-12-04 03:12:50.944308"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.6ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:12:50 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2460", "user_id"=>"2878"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2878], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2460], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2878], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2878], ["room_id", 2460], ["created_at", "2018-12-04 03:12:50.960570"], ["updated_at", "2018-12-04 03:12:50.960570"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.5ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2460], ["user_id", 2878], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GmD9KOyBULN4W1rNHeppr.0WTvUeNT3SDy8QYywyY7l4AVYJLDD/i"], ["created_at", "2018-12-04 03:12:50.975385"], ["updated_at", "2018-12-04 03:12:50.975385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:50.979641"], ["updated_at", "2018-12-04 03:12:50.979641"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:12:50 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:50.984222"], ["last_sign_in_at", "2018-12-04 03:12:50.984222"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:50.985195"], ["id", 2879]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2461"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2461], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$S5s.UUg9WBHsdmzbXOduf.OwAWLf5tHrKQe845il450PUj/nLTH9O"], ["created_at", "2018-12-04 03:12:51.001831"], ["updated_at", "2018-12-04 03:12:51.001831"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.005912"], ["updated_at", "2018-12-04 03:12:51.005912"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.011002"], ["last_sign_in_at", "2018-12-04 03:12:51.011002"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.011958"], ["id", 2880]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2462"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2AAhgkLJS.oQ9mamAN2K3eWwE4sHMwGoyVBFt55X6i5lVzhE4oRy6"], ["created_at", "2018-12-04 03:12:51.027736"], ["updated_at", "2018-12-04 03:12:51.027736"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.031732"], ["updated_at", "2018-12-04 03:12:51.031732"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2463], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2881], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2881], ["room_id", 2463], ["created_at", "2018-12-04 03:12:51.039021"], ["updated_at", "2018-12-04 03:12:51.039021"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2463” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.043381"], ["last_sign_in_at", "2018-12-04 03:12:51.043381"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.044324"], ["id", 2881]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2463"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2463], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2463')
Rendered appointments/show.html.erb within layouts/application (13.1ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 217ms (Views: 212.7ms | ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JNCWmcw0McaqRCGpqgxWJ.iJQjC0iWa0RqM0Web5rfK1el9v6s/Wu"], ["created_at", "2018-12-04 03:12:51.275103"], ["updated_at", "2018-12-04 03:12:51.275103"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.279070"], ["updated_at", "2018-12-04 03:12:51.279070"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2464], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2882], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2882], ["room_id", 2464], ["created_at", "2018-12-04 03:12:51.287054"], ["updated_at", "2018-12-04 03:12:51.287054"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2464], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2882], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2882], ["room_id", 2464], ["created_at", "2018-12-04 03:12:51.294693"], ["updated_at", "2018-12-04 03:12:51.294693"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.299023"], ["last_sign_in_at", "2018-12-04 03:12:51.299023"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.299943"], ["id", 2882]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2882]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.8ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 20ms (Views: 10.1ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$h22jj4EUUNfSWmTA3xPqj.VLaoUfSvjOKGxFPIaukpoTHxuZGcLrW"], ["created_at", "2018-12-04 03:12:51.333648"], ["updated_at", "2018-12-04 03:12:51.333648"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.337700"], ["updated_at", "2018-12-04 03:12:51.337700"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2465], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2883], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2883], ["room_id", 2465], ["created_at", "2018-12-04 03:12:51.345735"], ["updated_at", "2018-12-04 03:12:51.345735"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2465], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2883], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2883], ["room_id", 2465], ["created_at", "2018-12-04 03:12:51.353553"], ["updated_at", "2018-12-04 03:12:51.353553"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.357761"], ["last_sign_in_at", "2018-12-04 03:12:51.357761"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.358673"], ["id", 2883]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2883]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$i2r7NwbxCwXvtmHNCx9M6eCQK3xJppT4136F66jCISb8EPuHJUgZC"], ["created_at", "2018-12-04 03:12:51.381999"], ["updated_at", "2018-12-04 03:12:51.381999"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.386297"], ["updated_at", "2018-12-04 03:12:51.386297"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2466], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2884], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2884], ["room_id", 2466], ["created_at", "2018-12-04 03:12:51.394261"], ["updated_at", "2018-12-04 03:12:51.394261"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2495” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.398531"], ["last_sign_in_at", "2018-12-04 03:12:51.398531"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.399560"], ["id", 2884]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2495"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2495], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2495]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gjt2YzFGgsiLmrUy3yzjru.SvE7VrOh/4Ji0ghOt/w.sqLPyMAvWu"], ["created_at", "2018-12-04 03:12:51.421834"], ["updated_at", "2018-12-04 03:12:51.421834"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.426216"], ["updated_at", "2018-12-04 03:12:51.426216"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aTDOD7FdYOpiJ6oq5rciZ.ZOlGnuj3fZBysSIP8iQGQRPQMEMTRfm"], ["created_at", "2018-12-04 03:12:51.433726"], ["updated_at", "2018-12-04 03:12:51.433726"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2467], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2886], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2886], ["room_id", 2467], ["created_at", "2018-12-04 03:12:51.441896"], ["updated_at", "2018-12-04 03:12:51.441896"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:12:51.445741"], ["id", 2496]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2467], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2886], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2886], ["room_id", 2467], ["created_at", "2018-12-04 03:12:51.453891"], ["updated_at", "2018-12-04 03:12:51.453891"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:12:51.457640"], ["id", 2497]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.461533"], ["last_sign_in_at", "2018-12-04 03:12:51.461533"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.462466"], ["id", 2885]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2886], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2467], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2886], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2467], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.8ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 18ms (Views: 14.0ms | ActiveRecord: 1.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HQgMKdsV7CNv3lBZHegPI.3Q3bI1O3MfSAR2FzeTWwaHcwRoQIagm"], ["created_at", "2018-12-04 03:12:51.494341"], ["updated_at", "2018-12-04 03:12:51.494341"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.498105"], ["updated_at", "2018-12-04 03:12:51.498105"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2zRD5n2ThlBnICdM2sKiDeX18GYBfLulaKf/bJ3vMEaoe/HEZME2a"], ["created_at", "2018-12-04 03:12:51.505276"], ["updated_at", "2018-12-04 03:12:51.505276"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2468], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2888], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2888], ["room_id", 2468], ["created_at", "2018-12-04 03:12:51.512928"], ["updated_at", "2018-12-04 03:12:51.512928"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:12:51.516837"], ["id", 2498]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2468], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2888], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2888], ["room_id", 2468], ["created_at", "2018-12-04 03:12:51.524054"], ["updated_at", "2018-12-04 03:12:51.524054"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:12:51.527562"], ["id", 2499]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.531324"], ["last_sign_in_at", "2018-12-04 03:12:51.531324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.532247"], ["id", 2887]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2888], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2468], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2888], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2468], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.2ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 14ms (Views: 10.5ms | ActiveRecord: 1.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$R.LJLVdgLgGhxMLDtZPZmuvgG6mlEWyCCokAVLsOGWIARLcDTRl3O"], ["created_at", "2018-12-04 03:12:51.561221"], ["updated_at", "2018-12-04 03:12:51.561221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.565097"], ["last_sign_in_at", "2018-12-04 03:12:51.565097"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.565904"], ["id", 2889]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (6.7ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2hRFeEAVGot7PAwIxxRIBuNJePs1jRYDAH/KpHhsLGhxjeeVeYOuC"], ["created_at", "2018-12-04 03:12:51.594408"], ["updated_at", "2018-12-04 03:12:51.594408"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.598238"], ["last_sign_in_at", "2018-12-04 03:12:51.598238"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.599032"], ["id", 2890]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.9jgEC1.8mpcuUSm2zsbnO7YF/Y7VaRQ6A.uxY67k3MEkyCpY.21y"], ["created_at", "2018-12-04 03:12:51.612674"], ["updated_at", "2018-12-04 03:12:51.612674"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.617149"], ["last_sign_in_at", "2018-12-04 03:12:51.617149"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.618036"], ["id", 2891]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gFFYsncUrRdhKDuK/uQeueTfCIKj3EnKxnNw7Dmu.IjNrHf/HDsNS"], ["created_at", "2018-12-04 03:12:51.639487"], ["updated_at", "2018-12-04 03:12:51.639487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.643245"], ["last_sign_in_at", "2018-12-04 03:12:51.643245"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.644062"], ["id", 2892]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:12:51 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YVyctF41zlklaqRUIcXPUOoToz5hPvO348oL2iELkKL28qADZ3ipW"], ["created_at", "2018-12-04 03:12:51.674487"], ["updated_at", "2018-12-04 03:12:51.674487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.678348"], ["updated_at", "2018-12-04 03:12:51.678348"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2469” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.682281"], ["last_sign_in_at", "2018-12-04 03:12:51.682281"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.683200"], ["id", 2893]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2469"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2469], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mcd/qzatjhMcSDhh65bQXuTjM.RFY.g4VFIAv.3ZfzbmayF3IjRz2"], ["created_at", "2018-12-04 03:12:51.703063"], ["updated_at", "2018-12-04 03:12:51.703063"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.706474"], ["updated_at", "2018-12-04 03:12:51.706474"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2470” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.710159"], ["last_sign_in_at", "2018-12-04 03:12:51.710159"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.711172"], ["id", 2894]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2470"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2470], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.727371"], ["updated_at", "2018-12-04 03:12:51.727371"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2471” for 127.0.0.1 at 2018-12-04 01:12:51 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2471"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$umbpQCTSCOwiPR9/tQhOOuQdTOyzZz4Sq/ySMHmbfZdeAMONRoxFG"], ["created_at", "2018-12-04 03:12:51.742371"], ["updated_at", "2018-12-04 03:12:51.742371"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.746507"], ["updated_at", "2018-12-04 03:12:51.746507"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2472” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.750172"], ["last_sign_in_at", "2018-12-04 03:12:51.750172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.751107"], ["id", 2895]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2472"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.770673"], ["updated_at", "2018-12-04 03:12:51.770673"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2473” for 127.0.0.1 at 2018-12-04 01:12:51 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2473"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UEWDKNq7V3R882JkoM9lfuBIl/kHpV2xZBwWX5GGYhNAhasBwYpDa"], ["created_at", "2018-12-04 03:12:51.785623"], ["updated_at", "2018-12-04 03:12:51.785623"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.789669"], ["updated_at", "2018-12-04 03:12:51.789669"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2474/edit” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.793480"], ["last_sign_in_at", "2018-12-04 03:12:51.793480"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.794369"], ["id", 2896]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2474"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2474], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8WRQ2uSyQRyrGcQVBj8/uOox06UUX3UQoFpdzDD9ofGxRmwH8lcYy"], ["created_at", "2018-12-04 03:12:51.818826"], ["updated_at", "2018-12-04 03:12:51.818826"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.822608"], ["updated_at", "2018-12-04 03:12:51.822608"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2475/edit” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.826187"], ["last_sign_in_at", "2018-12-04 03:12:51.826187"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.827149"], ["id", 2897]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2475"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2475], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.846792"], ["updated_at", "2018-12-04 03:12:51.846792"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2476” for 127.0.0.1 at 2018-12-04 01:12:51 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2476"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IN3s6A5022WIvVrtLPI0t.K15ETpob3ZDSeRJZOhLnKe0Jphg.LDG"], ["created_at", "2018-12-04 03:12:51.862206"], ["updated_at", "2018-12-04 03:12:51.862206"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.869348"], ["last_sign_in_at", "2018-12-04 03:12:51.869348"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.870885"], ["id", 2898]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.878441"], ["updated_at", "2018-12-04 03:12:51.878441"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0tSdwAcJ/nL.tj8hwJq9xuNH/BSZJ2ovSH5wSHaBVqkz.oqjNI0YO"], ["created_at", "2018-12-04 03:12:51.895174"], ["updated_at", "2018-12-04 03:12:51.895174"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.901607"], ["last_sign_in_at", "2018-12-04 03:12:51.901607"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.902849"], ["id", 2899]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:51.910270"], ["updated_at", "2018-12-04 03:12:51.910270"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Yb5qfEyZm6dzwg1OgsHRcOq.OJWeBdHwhkOG5/Lo9IcbVaUWiVoJ6"], ["created_at", "2018-12-04 03:12:51.924559"], ["updated_at", "2018-12-04 03:12:51.924559"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.930638"], ["last_sign_in_at", "2018-12-04 03:12:51.930638"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.931762"], ["id", 2900]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.4ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VWF1OzaauywFnEIFbSW/Ye1TxdZ5iMFzgGtGK6sdFR1eR22fCpG7G"], ["created_at", "2018-12-04 03:12:51.953842"], ["updated_at", "2018-12-04 03:12:51.953842"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.960008"], ["last_sign_in_at", "2018-12-04 03:12:51.960008"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.961336"], ["id", 2901]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms)

 (0.6ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$s7LPuJB5BZLvBsR8Ngotb.PmofCXG8y7XxbMExqBw/vrDcfuWFqW6"], ["created_at", "2018-12-04 03:12:51.984961"], ["updated_at", "2018-12-04 03:12:51.984961"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:12:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:51.992581"], ["last_sign_in_at", "2018-12-04 03:12:51.992581"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:51.993662"], ["id", 2902]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sxg8Hl7ACqlZznBUIfLKg.5mYhLcYYyzSjJ89UyYp0hY1bNyqMD/e"], ["created_at", "2018-12-04 03:12:52.010369"], ["updated_at", "2018-12-04 03:12:52.010369"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.015135"], ["updated_at", "2018-12-04 03:12:52.015135"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2479” for 127.0.0.1 at 2018-12-04 01:12:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:52.020911"], ["last_sign_in_at", "2018-12-04 03:12:52.020911"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:52.021998"], ["id", 2903]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2479"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2479], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:12:52.031472"], ["id", 2479]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2479 Completed 302 Found in 8ms (ActiveRecord: 1.7ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jCw7geuN/w658QpaRfydbONV0pln1zAwoD8UcIiuqr9b0ROam0xeC"], ["created_at", "2018-12-04 03:12:52.047285"], ["updated_at", "2018-12-04 03:12:52.047285"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.052459"], ["updated_at", "2018-12-04 03:12:52.052459"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2480” for 127.0.0.1 at 2018-12-04 01:12:52 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:52.058076"], ["last_sign_in_at", "2018-12-04 03:12:52.058076"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:52.059232"], ["id", 2904]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2480"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2480], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:12:52.068200"], ["id", 2480]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2480 Completed 302 Found in 7ms (ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qg2GwxNbC49uk3OckCdRAuAXNLfAx.Cx/zewx6a4LgP5nkJfhxu02"], ["created_at", "2018-12-04 03:12:52.082985"], ["updated_at", "2018-12-04 03:12:52.082985"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.087777"], ["updated_at", "2018-12-04 03:12:52.087777"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2481” for 127.0.0.1 at 2018-12-04 01:12:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:52.093496"], ["last_sign_in_at", "2018-12-04 03:12:52.093496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:52.094676"], ["id", 2905]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2481"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2481], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 15ms (Views: 9.6ms | ActiveRecord: 1.0ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C79QPTDp3y6iLY3ixr4vAuINjvjSn5dhNCDJzjNdJndFf.zaIdTVO"], ["created_at", "2018-12-04 03:12:52.126599"], ["updated_at", "2018-12-04 03:12:52.126599"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.131519"], ["updated_at", "2018-12-04 03:12:52.131519"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2482” for 127.0.0.1 at 2018-12-04 01:12:52 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:52.136860"], ["last_sign_in_at", "2018-12-04 03:12:52.136860"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:52.138207"], ["id", 2906]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2482"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2482], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 15ms (Views: 9.4ms | ActiveRecord: 1.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tlOd1XmBPUJmAQXAORBk.unRR3su/2rMswhdFLr4UeK7c8G1VFqM6"], ["created_at", "2018-12-04 03:12:52.168333"], ["updated_at", "2018-12-04 03:12:52.168333"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:12:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:52.174896"], ["last_sign_in_at", "2018-12-04 03:12:52.174896"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:52.175993"], ["id", 2907]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TWkcPzIEe2SmDjJXNdmrB.FSz3TNSlEB2GchT36eFzByrwBDzYC26"], ["created_at", "2018-12-04 03:12:52.192843"], ["updated_at", "2018-12-04 03:12:52.192843"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.203580"], ["updated_at", "2018-12-04 03:12:52.203580"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2483” for 127.0.0.1 at 2018-12-04 01:12:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:52.208032"], ["last_sign_in_at", "2018-12-04 03:12:52.208032"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:52.209112"], ["id", 2908]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2483"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2483], ["LIMIT", 1]]
 (0.5ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2483]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GoShk.zWbw4AaUVbJhnHL.dOmkDrHef0.Xb4cSzocGjvZoUKMwFS."], ["created_at", "2018-12-04 03:12:52.230577"], ["updated_at", "2018-12-04 03:12:52.230577"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.235598"], ["updated_at", "2018-12-04 03:12:52.235598"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2484” for 127.0.0.1 at 2018-12-04 01:12:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:52.239920"], ["last_sign_in_at", "2018-12-04 03:12:52.239920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:52.240970"], ["id", 2909]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2484"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2484], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2484]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ulJ.ue.F.pRCIfeg2wfxv.be5oQtsiioomi/ghDoxpxSC67MBNeHi"], ["created_at", "2018-12-04 03:12:52.260483"], ["updated_at", "2018-12-04 03:12:52.260483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.265749"], ["updated_at", "2018-12-04 03:12:52.265749"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2485” for 127.0.0.1 at 2018-12-04 01:12:52 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:52.270232"], ["last_sign_in_at", "2018-12-04 03:12:52.270232"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:52.271361"], ["id", 2910]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2485"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u/0x2N8jMgc0EG8l4M2Aj.kZyLssGKWYxZDLdrPU7CHoImaDuWJgG"], ["created_at", "2018-12-04 03:12:52.288564"], ["updated_at", "2018-12-04 03:12:52.288564"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.293182"], ["updated_at", "2018-12-04 03:12:52.293182"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2486” for 127.0.0.1 at 2018-12-04 01:12:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:52.297248"], ["last_sign_in_at", "2018-12-04 03:12:52.297248"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:52.298270"], ["id", 2911]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2486"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LNzBy.ewpFVVdEKVqYBwXOK7unTQgMKo7UgWjJzyluIveZZ9ZOoLu"], ["created_at", "2018-12-04 03:12:52.313974"], ["updated_at", "2018-12-04 03:12:52.313974"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 01:12:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:52.319113"], ["last_sign_in_at", "2018-12-04 03:12:52.319113"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:52.320163"], ["id", 2912]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9KNju3nvP91cvTNnkWmW6.CAnR0gNPj.686WXiMY7bPjEViHt99L2"], ["created_at", "2018-12-04 03:12:52.348903"], ["updated_at", "2018-12-04 03:12:52.348903"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.353324"], ["updated_at", "2018-12-04 03:12:52.353324"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.357052"], ["updated_at", "2018-12-04 03:12:52.357052"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.360850"], ["updated_at", "2018-12-04 03:12:52.360850"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2487], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2913], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2913], ["room_id", 2487], ["created_at", "2018-12-04 03:12:52.369381"], ["updated_at", "2018-12-04 03:12:52.369381"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 01:12:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:52.374106"], ["last_sign_in_at", "2018-12-04 03:12:52.374106"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:52.375409"], ["id", 2913]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 23ms (Views: 8.3ms | ActiveRecord: 1.8ms)

Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.0ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VjWMgWZ3.vjGQCRCyGnepuXSGG331dNgRA96KXPJLZgurDk1CwbVu"], ["created_at", "2018-12-04 03:12:52.417430"], ["updated_at", "2018-12-04 03:12:52.417430"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.422530"], ["updated_at", "2018-12-04 03:12:52.422530"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.426638"], ["updated_at", "2018-12-04 03:12:52.426638"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:12:52.430615"], ["updated_at", "2018-12-04 03:12:52.430615"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2490], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2914], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2914], ["room_id", 2490], ["created_at", "2018-12-04 03:12:52.439634"], ["updated_at", "2018-12-04 03:12:52.439634"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 01:12:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:12:52.444236"], ["last_sign_in_at", "2018-12-04 03:12:52.444236"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:12:52.445263"], ["id", 2914]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CbLgRk12FKcPPg49Cu.MYuZy5r03Gp1oGsANZD87m/azckOoLvdAe"], ["created_at", "2018-12-04 03:14:04.720030"], ["updated_at", "2018-12-04 03:14:04.720030"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TaD/V86IOf8n9FlPKhPnp..ErsbjvfXsJWCMocaRzKRwJkcAO.Du."], ["created_at", "2018-12-04 03:14:04.728838"], ["updated_at", "2018-12-04 03:14:04.728838"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:04.750596"], ["updated_at", "2018-12-04 03:14:04.750596"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2493], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2916], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2916], ["room_id", 2493], ["created_at", "2018-12-04 03:14:04.799693"], ["updated_at", "2018-12-04 03:14:04.799693"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2502"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2502], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2493], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2916], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.7ms)

UserMailer#status_notification: processed outbound mail in 338.5ms Sent mail to 123@123.com (11.2ms) Date: Tue, 04 Dec 2018 01:14:05 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05f0fd297e5_327c7c2f186197c@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f0fd279c6_327c7c2f1861864";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f0fd279c6_327c7c2f1861864 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05f0fd279c6_327c7c2f1861864 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05f0fd279c6_327c7c2f1861864–

Completed 302 Found in 362ms (ActiveRecord: 2.5ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Vbmi7YH8fCiBxcRWdAUcrel4cBOOoSexeiylS3mzrME8aRfUD1fU2"], ["created_at", "2018-12-04 03:14:05.185794"], ["updated_at", "2018-12-04 03:14:05.185794"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DuHczXkqwdRPVUrhW06/G.N3QJuMpLW2OUf2HXE6dmb1/pFomZV1i"], ["created_at", "2018-12-04 03:14:05.194023"], ["updated_at", "2018-12-04 03:14:05.194023"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:05.198333"], ["updated_at", "2018-12-04 03:14:05.198333"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2494], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2918], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2918], ["room_id", 2494], ["created_at", "2018-12-04 03:14:05.207022"], ["updated_at", "2018-12-04 03:14:05.207022"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2503"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2503], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2494], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2918], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-04 03:14:05.218852"], ["id", 2503]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms Sent mail to 123@123.com (6.0ms) Date: Tue, 04 Dec 2018 01:14:05 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05f0fd37fbe_327c7c2f18621d1@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f0fd37051_327c7c2f18620d4";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f0fd37051_327c7c2f18620d4 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05f0fd37051_327c7c2f18620d4 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05f0fd37051_327c7c2f18620d4–

Completed 302 Found in 22ms (ActiveRecord: 3.0ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4M6FG6vLQdh8hPq5zQuJUum9DEC9ib8ULjhULuBPAxW3Y8T8U.aiW"], ["created_at", "2018-12-04 03:14:05.242887"], ["updated_at", "2018-12-04 03:14:05.242887"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$r/Yfc4Rrp9BkEPodqG/wGO6rLZMI9X4GGmqi6pQYEMy6JZaxdXqz2"], ["created_at", "2018-12-04 03:14:05.250647"], ["updated_at", "2018-12-04 03:14:05.250647"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:05.254364"], ["updated_at", "2018-12-04 03:14:05.254364"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2495], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2920], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2920], ["room_id", 2495], ["created_at", "2018-12-04 03:14:05.261605"], ["updated_at", "2018-12-04 03:14:05.261605"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G.Jl8Bu2I08XH3cFKWM.Qe06bglMJVjzWNCjyRreTjrIXpy6/2Njm"], ["created_at", "2018-12-04 03:14:05.276938"], ["updated_at", "2018-12-04 03:14:05.276938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KanyYXBGV8XFV7y.dHt4Ue34Q4SAq9QUbwD3qCgSViSjOf5FRsHhi"], ["created_at", "2018-12-04 03:14:05.284611"], ["updated_at", "2018-12-04 03:14:05.284611"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:05.288361"], ["updated_at", "2018-12-04 03:14:05.288361"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2496], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2922], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2922], ["room_id", 2496], ["created_at", "2018-12-04 03:14:05.295726"], ["updated_at", "2018-12-04 03:14:05.295726"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2505], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$xA5QiLXGU1UcZfhuMqKXZeccajP/MPb20rfmno.xvK8yR6yZPIQtm"], ["created_at", "2018-12-04 03:14:05.310549"], ["updated_at", "2018-12-04 03:14:05.310549"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2923"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "AfKw-5JGXgM36ARqSVElCw"], ["updated_at", "2018-12-04 03:14:05.320272"], ["id", 2923]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 03:14:05.324438"], ["reset_sent_at", "2018-12-04 03:14:05.323606"], ["id", 2923]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.6ms)

UserMailer#password_reset: processed outbound mail in 11.1ms Sent mail to teste@unb.com.br (6.3ms) Date: Tue, 04 Dec 2018 01:14:05 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05f0fd5338b_327c7c2f18624e1@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f0fd523b7_327c7c2f1862365";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f0fd523b7_327c7c2f1862365 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/AfKw-5JGXgM36ARqSVElCw/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05f0fd523b7_327c7c2f1862365 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/AfKw-5JGXgM36ARqSVElCw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05f0fd523b7_327c7c2f1862365–

Redirected to test.host/login Completed 302 Found in 30ms (ActiveRecord: 3.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$KrxAuiD3.eJ42v1EZ6NzYuK0LUf9YQh07BNOGZm0WBtewxs2AFgqK"], ["created_at", "2018-12-04 03:14:05.357454"], ["updated_at", "2018-12-04 03:14:05.357454"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.3ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$m6F1fET8Cr.p/82FwSEKJuSDnLCW/rU6PvAQa6cigkTH38Ee1ebx2"], ["created_at", "2018-12-04 03:14:05.377470"], ["updated_at", "2018-12-04 03:14:05.377470"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2925"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$2eA2OnsVpWofJMU.a.pksuO1FwD/OvxqVu6RlNjGhs.spHG6R33ky"], ["updated_at", "2018-12-04 03:14:05.387741"], ["id", 2925]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 10ms (ActiveRecord: 2.2ms)

 (0.7ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$OkAfAfnhzhsg4JBDZfXjC.rpXkIbAKL8ZclW7.1Vo7DZ98McTZEqK"], ["created_at", "2018-12-04 03:14:05.404398"], ["updated_at", "2018-12-04 03:14:05.404398"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2926"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$VHbb3Pgo8V4RuhNxfSrxTuASZlnBdlOF0iHiPq/zira//fRbv4DUu"], ["created_at", "2018-12-04 03:14:05.424856"], ["updated_at", "2018-12-04 03:14:05.424856"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2927"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$qS3GPKud4Mfjlyk9qPixfOPKKoDFkhKED6NWPQispyduipYTlUKP."], ["created_at", "2018-12-04 03:14:05.458989"], ["updated_at", "2018-12-04 03:14:05.458989"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2928"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 10ms (Views: 1.5ms | ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$1fETfxBzIjIGZmyVwq7Cku.q9mjmQ1na10oO2PfX4wcwrTmeb59u6"], ["created_at", "2018-12-04 03:14:05.487443"], ["updated_at", "2018-12-04 03:14:05.487443"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2929"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FyM3KvdGKIyfhL5TtiT7burArAyAZ3h3q/Vs6ZFvnFTcNyj6qtVWy"], ["created_at", "2018-12-04 03:14:05.509633"], ["updated_at", "2018-12-04 03:14:05.509633"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ilE/3rwq58VUwTWc51pa0uPaFLFdM/A3KbovA4vN2hS4dcRSuqEQG"], ["created_at", "2018-12-04 03:14:05.527061"], ["updated_at", "2018-12-04 03:14:05.527061"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$m3xREUk1ETv79XeNNKE91O1VW0T4octMvIUsKZvU.fbm5rb3tSVHu"], ["created_at", "2018-12-04 03:14:05.545139"], ["updated_at", "2018-12-04 03:14:05.545139"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:05.549634"], ["updated_at", "2018-12-04 03:14:05.549634"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2497], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2932], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2932], ["room_id", 2497], ["created_at", "2018-12-04 03:14:05.558168"], ["updated_at", "2018-12-04 03:14:05.558168"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OSmWJxTw7WGq4UUZ/X3yJeupGVKW1VzXwq50CEgCBQkM.1EUTcKpC"], ["created_at", "2018-12-04 03:14:05.575110"], ["updated_at", "2018-12-04 03:14:05.575110"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:05.579305"], ["updated_at", "2018-12-04 03:14:05.579305"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2498], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2933], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2933], ["room_id", 2498], ["created_at", "2018-12-04 03:14:05.586685"], ["updated_at", "2018-12-04 03:14:05.586685"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.0ms

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FAOxRFeHoUSq5duS/NwB0udheXLehX27ORNfWUzH2vSBYcCX54xZe"], ["created_at", "2018-12-04 03:14:05.646510"], ["updated_at", "2018-12-04 03:14:05.646510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:05.650649"], ["updated_at", "2018-12-04 03:14:05.650649"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:14:05 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:05.663263"], ["last_sign_in_at", "2018-12-04 03:14:05.663263"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:05.664507"], ["id", 2934]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2499"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2499], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2934], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2934], ["room_id", 2499], ["created_at", "2018-12-04 03:14:05.681786"], ["updated_at", "2018-12-04 03:14:05.681786"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.9ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2499], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aLHnAUuqtM2M3WZyfWoMg.WrGXFk9YHrltPMaTXF.Ga45uBb6MSIe"], ["created_at", "2018-12-04 03:14:05.697697"], ["updated_at", "2018-12-04 03:14:05.697697"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:05.701699"], ["updated_at", "2018-12-04 03:14:05.701699"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:14:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:05.706819"], ["last_sign_in_at", "2018-12-04 03:14:05.706819"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:05.708094"], ["id", 2935]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2500"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2500], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2935], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2935], ["room_id", 2500], ["created_at", "2018-12-04 03:14:05.720204"], ["updated_at", "2018-12-04 03:14:05.720204"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.2ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0NHAw2RTtU/Yk6uqNrRWmOgqiaoJt.Dsj5mXOrO0d7bUvsTK7AYey"], ["created_at", "2018-12-04 03:14:05.734137"], ["updated_at", "2018-12-04 03:14:05.734137"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:05.738442"], ["updated_at", "2018-12-04 03:14:05.738442"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:14:05 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:05.743880"], ["last_sign_in_at", "2018-12-04 03:14:05.743880"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:05.744955"], ["id", 2936]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2501", "user_id"=>"2936"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2501], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2936], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2936], ["room_id", 2501], ["created_at", "2018-12-04 03:14:05.757690"], ["updated_at", "2018-12-04 03:14:05.757690"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.5ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:14:05 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2501", "user_id"=>"2936"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2936], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2501], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2936], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2936], ["room_id", 2501], ["created_at", "2018-12-04 03:14:05.775393"], ["updated_at", "2018-12-04 03:14:05.775393"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.2ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$F7rSXi7HWxn/4ZSsgBbdAuAWFIx/EPEzGfQv2HIr45wllGADQom.2"], ["created_at", "2018-12-04 03:14:05.788076"], ["updated_at", "2018-12-04 03:14:05.788076"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:05.792941"], ["updated_at", "2018-12-04 03:14:05.792941"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:14:05 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:05.798878"], ["last_sign_in_at", "2018-12-04 03:14:05.798878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:05.800001"], ["id", 2937]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2502", "user_id"=>"2937"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2502], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2937], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2937], ["room_id", 2502], ["created_at", "2018-12-04 03:14:05.812073"], ["updated_at", "2018-12-04 03:14:05.812073"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:14:05 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2502", "user_id"=>"2937"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2937], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2502], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2937], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2937], ["room_id", 2502], ["created_at", "2018-12-04 03:14:05.827507"], ["updated_at", "2018-12-04 03:14:05.827507"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.7ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2502], ["user_id", 2937], ["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wt0zWuYdKSmSY6da4pSUnOqwGvxSXG51/5CwNLdXV.mYcpKv.yTXW"], ["created_at", "2018-12-04 03:14:05.841646"], ["updated_at", "2018-12-04 03:14:05.841646"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:05.845591"], ["updated_at", "2018-12-04 03:14:05.845591"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:14:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:05.851461"], ["last_sign_in_at", "2018-12-04 03:14:05.851461"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:05.852569"], ["id", 2938]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2503", "user_id"=>"2938"}
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2503], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2938], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2938], ["room_id", 2503], ["created_at", "2018-12-04 03:14:05.864719"], ["updated_at", "2018-12-04 03:14:05.864719"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:14:05 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2503", "user_id"=>"2938"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2938], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2503], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2938], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2938], ["room_id", 2503], ["created_at", "2018-12-04 03:14:05.881196"], ["updated_at", "2018-12-04 03:14:05.881196"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.5ms)

Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2503], ["user_id", 2938], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JQkEi2x/55OFdN7VYMCLX.xfloXa70wcilJqGL5rbBCP2iNxBT1Uq"], ["created_at", "2018-12-04 03:14:05.896149"], ["updated_at", "2018-12-04 03:14:05.896149"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:05.900620"], ["updated_at", "2018-12-04 03:14:05.900620"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:14:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:05.905614"], ["last_sign_in_at", "2018-12-04 03:14:05.905614"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:05.906779"], ["id", 2939]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2504"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2504], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OpHEr4H3AhuznGHfpMg02O.075qvc.g./IY6JH/IruKEIFfEdcfEW"], ["created_at", "2018-12-04 03:14:05.924250"], ["updated_at", "2018-12-04 03:14:05.924250"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:05.929252"], ["updated_at", "2018-12-04 03:14:05.929252"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:14:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:05.934181"], ["last_sign_in_at", "2018-12-04 03:14:05.934181"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:05.935251"], ["id", 2940]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2505"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qEFk4SxAr5B8C5HlYkAXH.9MvDpAWfuC7QMlLPIaF9QXFBgEEBjw6"], ["created_at", "2018-12-04 03:14:05.952799"], ["updated_at", "2018-12-04 03:14:05.952799"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:05.957147"], ["updated_at", "2018-12-04 03:14:05.957147"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2506], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2941], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2941], ["room_id", 2506], ["created_at", "2018-12-04 03:14:05.965926"], ["updated_at", "2018-12-04 03:14:05.965926"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2506” for 127.0.0.1 at 2018-12-04 01:14:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:05.970441"], ["last_sign_in_at", "2018-12-04 03:14:05.970441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:05.971529"], ["id", 2941]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2506"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2506], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2506')
Rendered appointments/show.html.erb within layouts/application (13.5ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 211ms (Views: 206.3ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9rMvVlk5klwJDg/efIMa2ehVYVNiHEGGj1y6O48WYyauq8Jmsc.HG"], ["created_at", "2018-12-04 03:14:06.196995"], ["updated_at", "2018-12-04 03:14:06.196995"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.201679"], ["updated_at", "2018-12-04 03:14:06.201679"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2507], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2942], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2942], ["room_id", 2507], ["created_at", "2018-12-04 03:14:06.210438"], ["updated_at", "2018-12-04 03:14:06.210438"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2507], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2942], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2942], ["room_id", 2507], ["created_at", "2018-12-04 03:14:06.219003"], ["updated_at", "2018-12-04 03:14:06.219003"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.223365"], ["last_sign_in_at", "2018-12-04 03:14:06.223365"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.224384"], ["id", 2942]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2942]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.0ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 20ms (Views: 10.4ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oVv1/WoMAUpgVlN8lC5XI.13rbIYJQGRfywIH.vPPmZyZRdtzbs12"], ["created_at", "2018-12-04 03:14:06.259679"], ["updated_at", "2018-12-04 03:14:06.259679"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.264370"], ["updated_at", "2018-12-04 03:14:06.264370"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2508], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2943], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2943], ["room_id", 2508], ["created_at", "2018-12-04 03:14:06.272826"], ["updated_at", "2018-12-04 03:14:06.272826"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2508], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2943], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2943], ["room_id", 2508], ["created_at", "2018-12-04 03:14:06.281863"], ["updated_at", "2018-12-04 03:14:06.281863"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.286297"], ["last_sign_in_at", "2018-12-04 03:14:06.286297"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.287388"], ["id", 2943]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2943]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zCPgiNb3MYyJ3fkfjI3Xq.zGOfg5tN7kmTgaXQK/F3TRixJTyn1zG"], ["created_at", "2018-12-04 03:14:06.311989"], ["updated_at", "2018-12-04 03:14:06.311989"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.316674"], ["updated_at", "2018-12-04 03:14:06.316674"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2509], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2944], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2944], ["room_id", 2509], ["created_at", "2018-12-04 03:14:06.325204"], ["updated_at", "2018-12-04 03:14:06.325204"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2521” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.329649"], ["last_sign_in_at", "2018-12-04 03:14:06.329649"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.330829"], ["id", 2944]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2521"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2521], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2521]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uoz1x2T1XPUZbY3wQmN6fe7WoUb1wQo.i4mrwGmvKd5jWum8.dB4O"], ["created_at", "2018-12-04 03:14:06.354264"], ["updated_at", "2018-12-04 03:14:06.354264"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.359185"], ["updated_at", "2018-12-04 03:14:06.359185"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$v26oNbLCdqqf3sS/PLrKfe0Esd6WELAqsRldRheEFq3/uP38ul.zq"], ["created_at", "2018-12-04 03:14:06.367188"], ["updated_at", "2018-12-04 03:14:06.367188"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2510], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2946], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2946], ["room_id", 2510], ["created_at", "2018-12-04 03:14:06.376678"], ["updated_at", "2018-12-04 03:14:06.376678"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:14:06.381089"], ["id", 2522]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2510], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2946], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2946], ["room_id", 2510], ["created_at", "2018-12-04 03:14:06.389720"], ["updated_at", "2018-12-04 03:14:06.389720"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:14:06.393956"], ["id", 2523]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.398088"], ["last_sign_in_at", "2018-12-04 03:14:06.398088"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.399156"], ["id", 2945]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2946], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2510], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2946], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2510], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (9.1ms)
Rendered layouts/_header-admin.html.erb (3.4ms)

Completed 200 OK in 20ms (Views: 15.2ms | ActiveRecord: 2.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zuR5cxyxygo5HdXwlrwfteXhyXmlU2kbDaiumvnmj.tFV9I7TSpfW"], ["created_at", "2018-12-04 03:14:06.433207"], ["updated_at", "2018-12-04 03:14:06.433207"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.437570"], ["updated_at", "2018-12-04 03:14:06.437570"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SKM43oj.oSvSSaxVOKB2uu0pPZ/PXc.uMrG5dgCSFdENazLqsu6yi"], ["created_at", "2018-12-04 03:14:06.445597"], ["updated_at", "2018-12-04 03:14:06.445597"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2511], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2948], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2948], ["room_id", 2511], ["created_at", "2018-12-04 03:14:06.453967"], ["updated_at", "2018-12-04 03:14:06.453967"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:14:06.458427"], ["id", 2524]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2511], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2948], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2948], ["room_id", 2511], ["created_at", "2018-12-04 03:14:06.466580"], ["updated_at", "2018-12-04 03:14:06.466580"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:14:06.471206"], ["id", 2525]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.475476"], ["last_sign_in_at", "2018-12-04 03:14:06.475476"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.476488"], ["id", 2947]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2948], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2511], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2948], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2511], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.4ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 14ms (Views: 10.7ms | ActiveRecord: 1.8ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iq4Pndbc1nSN4H9OdkPCMuwUCETXq1opWbRlYbJ8KhxauzZvSkwcq"], ["created_at", "2018-12-04 03:14:06.506429"], ["updated_at", "2018-12-04 03:14:06.506429"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.510725"], ["last_sign_in_at", "2018-12-04 03:14:06.510725"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.512044"], ["id", 2949]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.5ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DVi8stfdOFugtKWOma3X9ulWn1ph/2abmA4l5aamtrdsttpxLTyBG"], ["created_at", "2018-12-04 03:14:06.542964"], ["updated_at", "2018-12-04 03:14:06.542964"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.547017"], ["last_sign_in_at", "2018-12-04 03:14:06.547017"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.548032"], ["id", 2950]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$drE/HEbRupnSEmrUgcPnhOFeI5LVQBNEn1IdZUWLeN3tSA/lwLbBu"], ["created_at", "2018-12-04 03:14:06.562975"], ["updated_at", "2018-12-04 03:14:06.562975"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.567287"], ["last_sign_in_at", "2018-12-04 03:14:06.567287"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.568261"], ["id", 2951]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZcEWLKR4yixaWCFE00DOden4.7N2j/pCl4fEFRunLIPZKE.OBvyU2"], ["created_at", "2018-12-04 03:14:06.591741"], ["updated_at", "2018-12-04 03:14:06.591741"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.596336"], ["last_sign_in_at", "2018-12-04 03:14:06.596336"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.597315"], ["id", 2952]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:14:06 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9WdG3Wdbrf3K6MRb8Fijp.ifpytUhfCMkEVxVIzzKa23CF3A9lPhG"], ["created_at", "2018-12-04 03:14:06.629868"], ["updated_at", "2018-12-04 03:14:06.629868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.633911"], ["updated_at", "2018-12-04 03:14:06.633911"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2512” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.638002"], ["last_sign_in_at", "2018-12-04 03:14:06.638002"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.639120"], ["id", 2953]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2512"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2512], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.V13kr1WkBP57t0MtrXID.dAASqnty5Qq2LumsQFNzK5dv5a/FNNC"], ["created_at", "2018-12-04 03:14:06.660857"], ["updated_at", "2018-12-04 03:14:06.660857"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.665199"], ["updated_at", "2018-12-04 03:14:06.665199"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2513” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.669110"], ["last_sign_in_at", "2018-12-04 03:14:06.669110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.670098"], ["id", 2954]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2513"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2513], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.686776"], ["updated_at", "2018-12-04 03:14:06.686776"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2514” for 127.0.0.1 at 2018-12-04 01:14:06 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2514"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bJULFjwA7MlFuwB5nBh.8eUqjdiu.ynE2XPCGWUm/3hZQ//PzEFC2"], ["created_at", "2018-12-04 03:14:06.702725"], ["updated_at", "2018-12-04 03:14:06.702725"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.706960"], ["updated_at", "2018-12-04 03:14:06.706960"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2515” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.710839"], ["last_sign_in_at", "2018-12-04 03:14:06.710839"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.711910"], ["id", 2955]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2515"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.732277"], ["updated_at", "2018-12-04 03:14:06.732277"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2516” for 127.0.0.1 at 2018-12-04 01:14:06 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2516"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oNQQcsVQx.hLS0pfPX4QKOU6L4Lpagau1iaQ8/ilOOoBkLag3ydDq"], ["created_at", "2018-12-04 03:14:06.747801"], ["updated_at", "2018-12-04 03:14:06.747801"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.752121"], ["updated_at", "2018-12-04 03:14:06.752121"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2517/edit” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.756382"], ["last_sign_in_at", "2018-12-04 03:14:06.756382"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.757427"], ["id", 2956]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2517"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2517], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XB28v1pH8vOq0sItRkUfROMj/LyKVOhQMljPlqRwwjl.TLQFgVtCa"], ["created_at", "2018-12-04 03:14:06.782618"], ["updated_at", "2018-12-04 03:14:06.782618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.787048"], ["updated_at", "2018-12-04 03:14:06.787048"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2518/edit” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.791015"], ["last_sign_in_at", "2018-12-04 03:14:06.791015"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.792076"], ["id", 2957]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2518"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2518], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.812373"], ["updated_at", "2018-12-04 03:14:06.812373"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2519” for 127.0.0.1 at 2018-12-04 01:14:06 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2519"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Mp6fcYyPOa69YH93Nz5bL.zxfWa20a8EVGWL7LKHXbSt3jvOVRfQS"], ["created_at", "2018-12-04 03:14:06.827697"], ["updated_at", "2018-12-04 03:14:06.827697"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.833122"], ["last_sign_in_at", "2018-12-04 03:14:06.833122"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.834099"], ["id", 2958]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.840751"], ["updated_at", "2018-12-04 03:14:06.840751"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CTpzZC3dbW8sgXzNfVJhdeNqX7OiNlnZJeHH6.DVbYKHc0lyxR62m"], ["created_at", "2018-12-04 03:14:06.855034"], ["updated_at", "2018-12-04 03:14:06.855034"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.860214"], ["last_sign_in_at", "2018-12-04 03:14:06.860214"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.861190"], ["id", 2959]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.867314"], ["updated_at", "2018-12-04 03:14:06.867314"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pEEl.j6cWDlvrcXdf6.AKeTw7UKiTTBbpnCRYz24iZmsrj5DOVj4e"], ["created_at", "2018-12-04 03:14:06.879338"], ["updated_at", "2018-12-04 03:14:06.879338"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.884831"], ["last_sign_in_at", "2018-12-04 03:14:06.884831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.885784"], ["id", 2960]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.4ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Y8ywb0h62Wj092jjbYPnqOpxbrPhs4KTEXiZ7UmmqZyomzk7K2MXm"], ["created_at", "2018-12-04 03:14:06.903817"], ["updated_at", "2018-12-04 03:14:06.903817"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.908897"], ["last_sign_in_at", "2018-12-04 03:14:06.908897"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.909828"], ["id", 2961]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NM7lmpPD0Eylnf5Yuz.Gk.2cpmjP26SthV0byt7IycNMxWj6LG8zi"], ["created_at", "2018-12-04 03:14:06.927438"], ["updated_at", "2018-12-04 03:14:06.927438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.932902"], ["last_sign_in_at", "2018-12-04 03:14:06.932902"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.933968"], ["id", 2962]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aTwCu5ECnfRk6ZeJRotCXOvVMd1oIEy6ysVV9RTjC6n0tATyOnfLK"], ["created_at", "2018-12-04 03:14:06.949649"], ["updated_at", "2018-12-04 03:14:06.949649"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.954256"], ["updated_at", "2018-12-04 03:14:06.954256"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2522” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.959547"], ["last_sign_in_at", "2018-12-04 03:14:06.959547"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.960624"], ["id", 2963]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2522"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2522], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:14:06.970353"], ["id", 2522]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2522 Completed 302 Found in 8ms (ActiveRecord: 1.8ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G8xIKuMfxphHUOXm51YIJ.m8rCZPwI5d0qArYnIenBn0l5jK4JT2G"], ["created_at", "2018-12-04 03:14:06.987354"], ["updated_at", "2018-12-04 03:14:06.987354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:06.992356"], ["updated_at", "2018-12-04 03:14:06.992356"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2523” for 127.0.0.1 at 2018-12-04 01:14:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:06.997749"], ["last_sign_in_at", "2018-12-04 03:14:06.997749"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:06.998952"], ["id", 2964]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2523"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2523], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:14:07.008082"], ["id", 2523]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2523 Completed 302 Found in 8ms (ActiveRecord: 1.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o3zcJrR/Rq7lieU56VYnguWJbBz8GkOZEvXffDCswAdTKAYuJ0Jai"], ["created_at", "2018-12-04 03:14:07.022786"], ["updated_at", "2018-12-04 03:14:07.022786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:07.027578"], ["updated_at", "2018-12-04 03:14:07.027578"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2524” for 127.0.0.1 at 2018-12-04 01:14:07 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:07.032890"], ["last_sign_in_at", "2018-12-04 03:14:07.032890"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:07.034022"], ["id", 2965]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2524"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2524], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 16ms (Views: 10.0ms | ActiveRecord: 1.1ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mILklhHFu.xfB0Vtapvs0Oirs08.SNOu73k.SkW8pJr1kdIm1DmUy"], ["created_at", "2018-12-04 03:14:07.066188"], ["updated_at", "2018-12-04 03:14:07.066188"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:07.070882"], ["updated_at", "2018-12-04 03:14:07.070882"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2525” for 127.0.0.1 at 2018-12-04 01:14:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:07.077037"], ["last_sign_in_at", "2018-12-04 03:14:07.077037"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:07.078185"], ["id", 2966]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2525"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2525], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 21ms (Views: 9.5ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$COgSAQnD.NHy0KKlN23y8.XrCmU4jQKkUqrXcjg0M15oQ/iIUcS6u"], ["created_at", "2018-12-04 03:14:07.114367"], ["updated_at", "2018-12-04 03:14:07.114367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:14:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:07.120445"], ["last_sign_in_at", "2018-12-04 03:14:07.120445"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:07.121656"], ["id", 2967]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OAaWC05Wj9fsOlBLwURpc.YsXZL3ghPAt2J69dyh/z9WOo3EEGlNK"], ["created_at", "2018-12-04 03:14:07.137618"], ["updated_at", "2018-12-04 03:14:07.137618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:07.142229"], ["updated_at", "2018-12-04 03:14:07.142229"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2526” for 127.0.0.1 at 2018-12-04 01:14:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:07.146562"], ["last_sign_in_at", "2018-12-04 03:14:07.146562"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:07.147759"], ["id", 2968]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2526"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2526], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2526]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/zuuTr6ITdpdbJNKsVAyLeVUBWsAZlsQaH/PcW8XVpg3v5xRSOJOO"], ["created_at", "2018-12-04 03:14:07.169141"], ["updated_at", "2018-12-04 03:14:07.169141"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:07.173599"], ["updated_at", "2018-12-04 03:14:07.173599"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2527” for 127.0.0.1 at 2018-12-04 01:14:07 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:07.177507"], ["last_sign_in_at", "2018-12-04 03:14:07.177507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:07.178713"], ["id", 2969]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2527"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2527], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2527]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qRT5lC.KRErc1skNtVitW.Y.FExzh7DfYraSFTpAnx9mRvxwQVhv6"], ["created_at", "2018-12-04 03:14:07.197990"], ["updated_at", "2018-12-04 03:14:07.197990"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:07.202808"], ["updated_at", "2018-12-04 03:14:07.202808"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2528” for 127.0.0.1 at 2018-12-04 01:14:07 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:07.206875"], ["last_sign_in_at", "2018-12-04 03:14:07.206875"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:07.208015"], ["id", 2970]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2528"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZyMssfjnm40E519e9gBmn.fqY8MsRTbO2.5Uoz6TVd7AJvXBPN9hC"], ["created_at", "2018-12-04 03:14:07.224369"], ["updated_at", "2018-12-04 03:14:07.224369"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:07.228839"], ["updated_at", "2018-12-04 03:14:07.228839"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2529” for 127.0.0.1 at 2018-12-04 01:14:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:07.233140"], ["last_sign_in_at", "2018-12-04 03:14:07.233140"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:07.234219"], ["id", 2971]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2529"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tI1wdq95RWblqJz6UUjwYubkAxVUnoh5mYN/8BYqYBJGCDjka7xGW"], ["created_at", "2018-12-04 03:14:07.249724"], ["updated_at", "2018-12-04 03:14:07.249724"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 01:14:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:07.254351"], ["last_sign_in_at", "2018-12-04 03:14:07.254351"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:07.255399"], ["id", 2972]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MPBdstbsbOtX.N1Bmy2R0uq/kTcn/GIwvU96PWcEaLGlQS0vJiyAq"], ["created_at", "2018-12-04 03:14:07.283235"], ["updated_at", "2018-12-04 03:14:07.283235"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:07.287827"], ["updated_at", "2018-12-04 03:14:07.287827"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:07.291618"], ["updated_at", "2018-12-04 03:14:07.291618"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:07.295260"], ["updated_at", "2018-12-04 03:14:07.295260"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2530], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2973], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2973], ["room_id", 2530], ["created_at", "2018-12-04 03:14:07.304187"], ["updated_at", "2018-12-04 03:14:07.304187"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 01:14:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:07.309105"], ["last_sign_in_at", "2018-12-04 03:14:07.309105"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:07.310296"], ["id", 2973]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.1ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 21ms (Views: 7.3ms | ActiveRecord: 1.7ms)

Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TV6uCPIwJdwvNACULGNJQeNqa8CQbOAOyJgduuOF.ciwT9n/3Wy3S"], ["created_at", "2018-12-04 03:14:07.349983"], ["updated_at", "2018-12-04 03:14:07.349983"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:07.354724"], ["updated_at", "2018-12-04 03:14:07.354724"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:07.358858"], ["updated_at", "2018-12-04 03:14:07.358858"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:14:07.362553"], ["updated_at", "2018-12-04 03:14:07.362553"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2533], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2974], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2974], ["room_id", 2533], ["created_at", "2018-12-04 03:14:07.371314"], ["updated_at", "2018-12-04 03:14:07.371314"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 01:14:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:14:07.376069"], ["last_sign_in_at", "2018-12-04 03:14:07.376069"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:14:07.377140"], ["id", 2974]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NFEgYzwStxGFiwSlv5cNW.I2JTUPAKGSYwzMEoYBYC0jQ69V4pL4O"], ["created_at", "2018-12-04 03:17:45.829263"], ["updated_at", "2018-12-04 03:17:45.829263"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Y6ODGXUUzQLE8mq8b9H7N.gQZQSLkueiGyGa.RPl9Pj4.tumtH/7O"], ["created_at", "2018-12-04 03:17:45.841199"], ["updated_at", "2018-12-04 03:17:45.841199"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (18.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:45.872868"], ["updated_at", "2018-12-04 03:17:45.872868"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2536], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2976], ["LIMIT", 1]]
SQL (1.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2976], ["room_id", 2536], ["created_at", "2018-12-04 03:17:45.956648"], ["updated_at", "2018-12-04 03:17:45.956648"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2528"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2528], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2536], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2976], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (2.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.6ms)

UserMailer#status_notification: processed outbound mail in 279.0ms Sent mail to 123@123.com (11.3ms) Date: Tue, 04 Dec 2018 01:17:46 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05f1da43010_38f41064f185565d@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f1da4119d_38f41064f1855567";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f1da4119d_38f41064f1855567 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05f1da4119d_38f41064f1855567 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05f1da4119d_38f41064f1855567–

Completed 302 Found in 304ms (ActiveRecord: 2.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Eq7U4id2Kov2gLPn91ixYeMC481tDFsZcQhKC7boHMPcizQDMX5d."], ["created_at", "2018-12-04 03:17:46.290297"], ["updated_at", "2018-12-04 03:17:46.290297"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qiLoxG7uW7t7Mr4P4bd8YOkZb6zA3bm1jZjbHKKIcvFWPogiXP/j."], ["created_at", "2018-12-04 03:17:46.298434"], ["updated_at", "2018-12-04 03:17:46.298434"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:46.302672"], ["updated_at", "2018-12-04 03:17:46.302672"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2537], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2978], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2978], ["room_id", 2537], ["created_at", "2018-12-04 03:17:46.311274"], ["updated_at", "2018-12-04 03:17:46.311274"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2529"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2529], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2537], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2978], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-04 03:17:46.322495"], ["id", 2529]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms Sent mail to 123@123.com (5.8ms) Date: Tue, 04 Dec 2018 01:17:46 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05f1da5128e_38f41064f1855848@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f1da503dc_38f41064f185572";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f1da503dc_38f41064f185572 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05f1da503dc_38f41064f185572 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05f1da503dc_38f41064f185572–

Completed 302 Found in 21ms (ActiveRecord: 2.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pMFiVAgC2ib35az0Qf9dOOqkPKJ0.Xwr3iwMEiGk8pAN1n1ud16uK"], ["created_at", "2018-12-04 03:17:46.345406"], ["updated_at", "2018-12-04 03:17:46.345406"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$x6FKo1Q6QpDmbfzzRchn6.Tx96D2K22htLEGobx9yUkAa9Q7LyOle"], ["created_at", "2018-12-04 03:17:46.352815"], ["updated_at", "2018-12-04 03:17:46.352815"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:46.356691"], ["updated_at", "2018-12-04 03:17:46.356691"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2538], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2980], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2980], ["room_id", 2538], ["created_at", "2018-12-04 03:17:46.364114"], ["updated_at", "2018-12-04 03:17:46.364114"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JyHKfUOoM6zIpOIHYvopnudXRFg29Ni87N.sY1eaf/2bN6Lanm2cW"], ["created_at", "2018-12-04 03:17:46.379896"], ["updated_at", "2018-12-04 03:17:46.379896"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$W/V/OB/ZrozdZ1FcS4yH5ucvEZPnAgr8RN3K2OkDm.slLr8w9Q77K"], ["created_at", "2018-12-04 03:17:46.387142"], ["updated_at", "2018-12-04 03:17:46.387142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:46.390918"], ["updated_at", "2018-12-04 03:17:46.390918"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2539], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2982], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2982], ["room_id", 2539], ["created_at", "2018-12-04 03:17:46.398283"], ["updated_at", "2018-12-04 03:17:46.398283"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2531], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$qGm8Q7pkActBRg/0PCc9K.fGjx67yQyA73cQ1b.c6a6CN6fJieX2i"], ["created_at", "2018-12-04 03:17:46.415386"], ["updated_at", "2018-12-04 03:17:46.415386"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2983"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "upCk4p-2TGcoPf0kWB93EA"], ["updated_at", "2018-12-04 03:17:46.424895"], ["id", 2983]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 03:17:46.428550"], ["reset_sent_at", "2018-12-04 03:17:46.427880"], ["id", 2983]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.6ms)

UserMailer#password_reset: processed outbound mail in 10.0ms Sent mail to teste@unb.com.br (6.0ms) Date: Tue, 04 Dec 2018 01:17:46 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05f1da6c3e2_38f41064f185618e@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f1da6b4a3_38f41064f185604b";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f1da6b4a3_38f41064f185604b Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/upCk4p-2TGcoPf0kWB93EA/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05f1da6b4a3_38f41064f185604b Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/upCk4p-2TGcoPf0kWB93EA/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05f1da6b4a3_38f41064f185604b–

Redirected to test.host/login Completed 302 Found in 27ms (ActiveRecord: 2.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$AHDhwRMogDNLZ7bWzQLwyu5UGassOkogSAIMYDpmuSd8SVnhbwEby"], ["created_at", "2018-12-04 03:17:46.462045"], ["updated_at", "2018-12-04 03:17:46.462045"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.4ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$jTAGXN2.GOedweI9/4jnre59pnULw530900JUORuQsV.fhye9GqnO"], ["created_at", "2018-12-04 03:17:46.479884"], ["updated_at", "2018-12-04 03:17:46.479884"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2985"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$.fZ5XHmotmGYTnf9AdrYw.1cAm/3txCfXGmMHo.iAxozWCzxwHzCW"], ["updated_at", "2018-12-04 03:17:46.489446"], ["id", 2985]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 1.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$7/HOE16tbLnJhm6vd1DcyucjNKhEBXTh2XMqa2KmJW4Vq/ubvh0s2"], ["created_at", "2018-12-04 03:17:46.505375"], ["updated_at", "2018-12-04 03:17:46.505375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"2986"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$i2wQ2TG6DNQjuUO/Mytic.8LBQGs6uorQNkpbx8Wcc0xQ7j2tJ9ii"], ["created_at", "2018-12-04 03:17:46.527297"], ["updated_at", "2018-12-04 03:17:46.527297"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2987"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 21ms (Views: 2.4ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$cuIvYj5AMQEOci2QPZF44.X31RXjJ8TR69UgdE.sVA67OD/z7x15W"], ["created_at", "2018-12-04 03:17:46.561101"], ["updated_at", "2018-12-04 03:17:46.561101"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2988"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$K367HnPPkA5iRbHtYMHuYu9eC409Bsh7TN02erPLM08BcjbiTBqVK"], ["created_at", "2018-12-04 03:17:46.581564"], ["updated_at", "2018-12-04 03:17:46.581564"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"2989"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DNBp4NpylByq4/r6ZMYy8e2exXWZhpjq/8x88tiAa2txcsdT0Y5vS"], ["created_at", "2018-12-04 03:17:46.603450"], ["updated_at", "2018-12-04 03:17:46.603450"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Vy4rF5bgB./fLfxIRBc/Tu3ofN6QwoQPMfRURHvmScwiaePTzuTT6"], ["created_at", "2018-12-04 03:17:46.620973"], ["updated_at", "2018-12-04 03:17:46.620973"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1WAd0oUD/M.BkUH/GCBXOuywV8rbydiFRc3AIt5Hsjh5F9ndVgcc."], ["created_at", "2018-12-04 03:17:46.639909"], ["updated_at", "2018-12-04 03:17:46.639909"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:46.644277"], ["updated_at", "2018-12-04 03:17:46.644277"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2540], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2992], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2992], ["room_id", 2540], ["created_at", "2018-12-04 03:17:46.652266"], ["updated_at", "2018-12-04 03:17:46.652266"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CjOF8/9yeJFgpsCQh/rS2uPRZVz4gThjCLmfqI/eVr63XF/EvPluC"], ["created_at", "2018-12-04 03:17:46.669470"], ["updated_at", "2018-12-04 03:17:46.669470"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:46.674427"], ["updated_at", "2018-12-04 03:17:46.674427"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2541], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2993], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2993], ["room_id", 2541], ["created_at", "2018-12-04 03:17:46.682237"], ["updated_at", "2018-12-04 03:17:46.682237"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mShl.q2e.PD39SnnUcMSUeERTRBVlmreTX6OEpg3uynyvONZ/hhc6"], ["created_at", "2018-12-04 03:17:46.741812"], ["updated_at", "2018-12-04 03:17:46.741812"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:46.746075"], ["updated_at", "2018-12-04 03:17:46.746075"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:17:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:46.759046"], ["last_sign_in_at", "2018-12-04 03:17:46.759046"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:46.760115"], ["id", 2994]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2542"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2542], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2994], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2994], ["room_id", 2542], ["created_at", "2018-12-04 03:17:46.779539"], ["updated_at", "2018-12-04 03:17:46.779539"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2542], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nPoA39zrv0EhngMBToX3fuyWUCnG9TgZtB1O./RNHA/xia.KuOJdO"], ["created_at", "2018-12-04 03:17:46.795414"], ["updated_at", "2018-12-04 03:17:46.795414"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:46.800224"], ["updated_at", "2018-12-04 03:17:46.800224"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:17:46 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:46.805472"], ["last_sign_in_at", "2018-12-04 03:17:46.805472"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:46.806557"], ["id", 2995]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2543"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2543], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2995], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2995], ["room_id", 2543], ["created_at", "2018-12-04 03:17:46.817800"], ["updated_at", "2018-12-04 03:17:46.817800"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mysIOCwizwtHsyIXj52DF.6Lubm5KlNhhvI.JfWrONFZjtNEmq1mu"], ["created_at", "2018-12-04 03:17:46.831394"], ["updated_at", "2018-12-04 03:17:46.831394"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:46.837900"], ["updated_at", "2018-12-04 03:17:46.837900"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:17:46 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:46.845533"], ["last_sign_in_at", "2018-12-04 03:17:46.845533"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:46.846925"], ["id", 2996]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2544", "user_id"=>"2996"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2544], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2996], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2996], ["room_id", 2544], ["created_at", "2018-12-04 03:17:46.859490"], ["updated_at", "2018-12-04 03:17:46.859490"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.7ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:17:46 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2544", "user_id"=>"2996"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2996], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2544], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2996], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2996], ["room_id", 2544], ["created_at", "2018-12-04 03:17:46.875958"], ["updated_at", "2018-12-04 03:17:46.875958"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$k6i1CPqC1F9dtblBZCPUs.r49AGrKxFCMJlsRHhwfv.YUjtAG6KrK"], ["created_at", "2018-12-04 03:17:46.888764"], ["updated_at", "2018-12-04 03:17:46.888764"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:46.894304"], ["updated_at", "2018-12-04 03:17:46.894304"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:17:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:46.901775"], ["last_sign_in_at", "2018-12-04 03:17:46.901775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:46.902953"], ["id", 2997]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2545", "user_id"=>"2997"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2545], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2997], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2997], ["room_id", 2545], ["created_at", "2018-12-04 03:17:46.913527"], ["updated_at", "2018-12-04 03:17:46.913527"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 1.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:17:46 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2545", "user_id"=>"2997"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2997], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2545], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2997], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2997], ["room_id", 2545], ["created_at", "2018-12-04 03:17:46.928545"], ["updated_at", "2018-12-04 03:17:46.928545"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.6ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2545], ["user_id", 2997], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZId67gRak.d0X/6dWuW1te48bv3p185xpcyC6zQvSDbEewiccYeqi"], ["created_at", "2018-12-04 03:17:46.943390"], ["updated_at", "2018-12-04 03:17:46.943390"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:46.947795"], ["updated_at", "2018-12-04 03:17:46.947795"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:17:46 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:46.953254"], ["last_sign_in_at", "2018-12-04 03:17:46.953254"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:46.954344"], ["id", 2998]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2546", "user_id"=>"2998"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2546], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2998], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2998], ["room_id", 2546], ["created_at", "2018-12-04 03:17:46.965424"], ["updated_at", "2018-12-04 03:17:46.965424"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.5ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:17:46 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2546", "user_id"=>"2998"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2998], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2546], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2998], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2998], ["room_id", 2546], ["created_at", "2018-12-04 03:17:46.981619"], ["updated_at", "2018-12-04 03:17:46.981619"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.4ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2546], ["user_id", 2998], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$W4irLFKuMHHW9XeAH7guneSgv7NPvsDQ1Se.XvCO/tHWaHn3HUt8S"], ["created_at", "2018-12-04 03:17:46.995773"], ["updated_at", "2018-12-04 03:17:46.995773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:47.000591"], ["updated_at", "2018-12-04 03:17:47.000591"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.005901"], ["last_sign_in_at", "2018-12-04 03:17:47.005901"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.006997"], ["id", 2999]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2547"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2547], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$l65iq3Wgj.NEJxkG5FOykO9rp9oNVlR1h3.qOEC6H7N344nKnqLGm"], ["created_at", "2018-12-04 03:17:47.025224"], ["updated_at", "2018-12-04 03:17:47.025224"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:47.029618"], ["updated_at", "2018-12-04 03:17:47.029618"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.034431"], ["last_sign_in_at", "2018-12-04 03:17:47.034431"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.035636"], ["id", 3000]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2548"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gs7SNKJlCkH2Iwo0WyBA8uzDVwTs3O4BxRz.VX0ax5DRC2VbK.oaa"], ["created_at", "2018-12-04 03:17:47.052399"], ["updated_at", "2018-12-04 03:17:47.052399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:47.056360"], ["updated_at", "2018-12-04 03:17:47.056360"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2549], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3001], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3001], ["room_id", 2549], ["created_at", "2018-12-04 03:17:47.063680"], ["updated_at", "2018-12-04 03:17:47.063680"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2549” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.067688"], ["last_sign_in_at", "2018-12-04 03:17:47.067688"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.068562"], ["id", 3001]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2549"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2549], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2549')
Rendered appointments/show.html.erb within layouts/application (13.6ms)
Rendered layouts/_header-user.html.erb (2.9ms)

Completed 200 OK in 219ms (Views: 214.6ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iksMV8oO.C56nQlWgq4vyOdAe8SGC89XuVnva.cUBjyN3RGSap51y"], ["created_at", "2018-12-04 03:17:47.301346"], ["updated_at", "2018-12-04 03:17:47.301346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:47.305366"], ["updated_at", "2018-12-04 03:17:47.305366"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2550], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3002], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3002], ["room_id", 2550], ["created_at", "2018-12-04 03:17:47.313479"], ["updated_at", "2018-12-04 03:17:47.313479"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2543/edit” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.317787"], ["last_sign_in_at", "2018-12-04 03:17:47.317787"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.318830"], ["id", 3002]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2543"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2543], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$M/lQJwYHg35Lz9yzE5Hi2OUl5bPDdBUTrmOzpjWFQx61rypUyfjVe"], ["created_at", "2018-12-04 03:17:47.344952"], ["updated_at", "2018-12-04 03:17:47.344952"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.349128"], ["last_sign_in_at", "2018-12-04 03:17:47.349128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.349938"], ["id", 3003]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rZj2q.AjgRhxBsclBvL5gOTMKYEK3.EnNGWGEg0RDZpyQdD4KHhie"], ["created_at", "2018-12-04 03:17:47.375483"], ["updated_at", "2018-12-04 03:17:47.375483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:47.379446"], ["updated_at", "2018-12-04 03:17:47.379446"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2551], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3004], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3004], ["room_id", 2551], ["created_at", "2018-12-04 03:17:47.387177"], ["updated_at", "2018-12-04 03:17:47.387177"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2551], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3004], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3004], ["room_id", 2551], ["created_at", "2018-12-04 03:17:47.395263"], ["updated_at", "2018-12-04 03:17:47.395263"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.399530"], ["last_sign_in_at", "2018-12-04 03:17:47.399530"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.400556"], ["id", 3004]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3004]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.6ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 19ms (Views: 10.0ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ozY7MBRwKuZOiTtRT4YkEepgjqovA4MmrSH6EA7laF5E0uQL8ZlBm"], ["created_at", "2018-12-04 03:17:47.434247"], ["updated_at", "2018-12-04 03:17:47.434247"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:47.438452"], ["updated_at", "2018-12-04 03:17:47.438452"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2552], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3005], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3005], ["room_id", 2552], ["created_at", "2018-12-04 03:17:47.446522"], ["updated_at", "2018-12-04 03:17:47.446522"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2552], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3005], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3005], ["room_id", 2552], ["created_at", "2018-12-04 03:17:47.454610"], ["updated_at", "2018-12-04 03:17:47.454610"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.459008"], ["last_sign_in_at", "2018-12-04 03:17:47.459008"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.459987"], ["id", 3005]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3005]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$EoHXMaCCW2gzMbdq.LJA7epudh6pMcXi0gicqwzKrsvnWr79YCjJK"], ["created_at", "2018-12-04 03:17:47.484502"], ["updated_at", "2018-12-04 03:17:47.484502"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:47.489377"], ["updated_at", "2018-12-04 03:17:47.489377"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2553], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3006], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3006], ["room_id", 2553], ["created_at", "2018-12-04 03:17:47.497723"], ["updated_at", "2018-12-04 03:17:47.497723"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2548” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.502403"], ["last_sign_in_at", "2018-12-04 03:17:47.502403"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.503519"], ["id", 3006]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2548"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2548], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2548]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zIC8dHNMu4giABgDHN98/OpBjUs.QevrKWlO67n81Ml94O2RNRvgG"], ["created_at", "2018-12-04 03:17:47.526197"], ["updated_at", "2018-12-04 03:17:47.526197"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:47.530797"], ["updated_at", "2018-12-04 03:17:47.530797"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zqtu5k2rbgJFUXUmYZgt0OuFaPVtYtCGc1WrrEP4RrAMuOq3cse16"], ["created_at", "2018-12-04 03:17:47.538509"], ["updated_at", "2018-12-04 03:17:47.538509"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2554], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3008], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3008], ["room_id", 2554], ["created_at", "2018-12-04 03:17:47.547138"], ["updated_at", "2018-12-04 03:17:47.547138"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2549” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.552218"], ["last_sign_in_at", "2018-12-04 03:17:47.552218"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.553256"], ["id", 3007]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2549"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2549], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2554], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3008], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 2.0ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Qbn9L2iuBeDruBy/xO0ipuSs.eTFQMfKmE21VwpIHuv802FkJ7Hgq"], ["created_at", "2018-12-04 03:17:47.578334"], ["updated_at", "2018-12-04 03:17:47.578334"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:47.582656"], ["updated_at", "2018-12-04 03:17:47.582656"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$P7kkYoa.wFIyUVFNecOLVOLKu9u/1t/KUsadnQnUeOF/R.gU0FtPq"], ["created_at", "2018-12-04 03:17:47.589646"], ["updated_at", "2018-12-04 03:17:47.589646"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2555], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3010], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3010], ["room_id", 2555], ["created_at", "2018-12-04 03:17:47.597873"], ["updated_at", "2018-12-04 03:17:47.597873"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2550” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.602702"], ["last_sign_in_at", "2018-12-04 03:17:47.602702"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.603715"], ["id", 3009]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2550"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2550], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2555], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3010], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 7ms (ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fgH09putNszRJBi7kqdGj.HUmo1HcaSrfdkl1VV37YuaFkYC1O4/O"], ["created_at", "2018-12-04 03:17:47.624815"], ["updated_at", "2018-12-04 03:17:47.624815"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:47.628782"], ["updated_at", "2018-12-04 03:17:47.628782"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5epzaYsqP88.mk6nr3JZteSWO7nRF1PEA/m8bKmF3hKMeNAwrJOza"], ["created_at", "2018-12-04 03:17:47.636069"], ["updated_at", "2018-12-04 03:17:47.636069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2556], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3012], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3012], ["room_id", 2556], ["created_at", "2018-12-04 03:17:47.643717"], ["updated_at", "2018-12-04 03:17:47.643717"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2551” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.648765"], ["last_sign_in_at", "2018-12-04 03:17:47.648765"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.649983"], ["id", 3011]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2551"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2551], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2556], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3012], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-04 03:17:47.663823"], ["id", 2551]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (5.8ms) Date: Tue, 04 Dec 2018 01:17:47 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05f1dba48ac_38f41064f1856846@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f1dba39d5_38f41064f18567f7";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f1dba39d5_38f41064f18567f7 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05f1dba39d5_38f41064f18567f7 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05f1dba39d5_38f41064f18567f7–

Completed 302 Found in 22ms (ActiveRecord: 2.6ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XPWODffZd/QqR6yx634JPuLqm1xarm6uAY3MMkY.NBwxUoVP0N5y2"], ["created_at", "2018-12-04 03:17:47.689165"], ["updated_at", "2018-12-04 03:17:47.689165"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:47.693447"], ["updated_at", "2018-12-04 03:17:47.693447"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uP433tL/xPGU0HrNdPIkVOmvMKeJXMC2Uss5xdSaoUsdGLJ8t7HmC"], ["created_at", "2018-12-04 03:17:47.701050"], ["updated_at", "2018-12-04 03:17:47.701050"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2557], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3014], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3014], ["room_id", 2557], ["created_at", "2018-12-04 03:17:47.709382"], ["updated_at", "2018-12-04 03:17:47.709382"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:17:47.713591"], ["id", 2552]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2557], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3014], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3014], ["room_id", 2557], ["created_at", "2018-12-04 03:17:47.721487"], ["updated_at", "2018-12-04 03:17:47.721487"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:17:47.725427"], ["id", 2553]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.729441"], ["last_sign_in_at", "2018-12-04 03:17:47.729441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.730480"], ["id", 3013]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3014], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2557], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3014], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2557], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.4ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 18ms (Views: 13.5ms | ActiveRecord: 2.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NkH/c25OdsAdKQ4ZC4f1TuvRZd9say0xjIyGG7S4zoXW8emirnnwy"], ["created_at", "2018-12-04 03:17:47.762849"], ["updated_at", "2018-12-04 03:17:47.762849"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:47.767017"], ["updated_at", "2018-12-04 03:17:47.767017"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VdLzAAgukuqaQ0d5d5/qqObb3X9dXI1zy5DUnTC2BhNzRqUcPiHB2"], ["created_at", "2018-12-04 03:17:47.775049"], ["updated_at", "2018-12-04 03:17:47.775049"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2558], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3016], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3016], ["room_id", 2558], ["created_at", "2018-12-04 03:17:47.783013"], ["updated_at", "2018-12-04 03:17:47.783013"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:17:47.787500"], ["id", 2554]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2558], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3016], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3016], ["room_id", 2558], ["created_at", "2018-12-04 03:17:47.795300"], ["updated_at", "2018-12-04 03:17:47.795300"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:17:47.799139"], ["id", 2555]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.803091"], ["last_sign_in_at", "2018-12-04 03:17:47.803091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.804165"], ["id", 3015]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3016], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2558], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3016], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2558], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.1ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 2.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TIsvpUYVhHA7/j76T8Hpxu32sRN.VKWD2Zkuyg6vxyXy5DPPyXxzu"], ["created_at", "2018-12-04 03:17:47.838919"], ["updated_at", "2018-12-04 03:17:47.838919"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.844181"], ["last_sign_in_at", "2018-12-04 03:17:47.844181"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.845310"], ["id", 3017]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (5.8ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 11.6ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qmZrEbgLFY41jPYXM.EIyOLZDRlfCBzEQ4odQpD6hh2gILzC1cWfu"], ["created_at", "2018-12-04 03:17:47.875245"], ["updated_at", "2018-12-04 03:17:47.875245"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.879418"], ["last_sign_in_at", "2018-12-04 03:17:47.879418"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.880451"], ["id", 3018]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cggkSUW4TTaQkh2Q/TDtw.gF7y4JF7tb9Xe1OR3hoscRviQyohrS2"], ["created_at", "2018-12-04 03:17:47.895619"], ["updated_at", "2018-12-04 03:17:47.895619"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.900224"], ["last_sign_in_at", "2018-12-04 03:17:47.900224"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.901282"], ["id", 3019]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XXGAI9xnM.7agmrWctb1ZumLqURvkAQGxxYwUZCTO/kECDAgf4Tre"], ["created_at", "2018-12-04 03:17:47.924929"], ["updated_at", "2018-12-04 03:17:47.924929"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.929098"], ["last_sign_in_at", "2018-12-04 03:17:47.929098"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.930118"], ["id", 3020]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:17:47 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AO6xuEciPSL626U0N0xQWORq2DSuOQzn/9GpBkwk6NFXBuy725Rsi"], ["created_at", "2018-12-04 03:17:47.963445"], ["updated_at", "2018-12-04 03:17:47.963445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:47.969051"], ["updated_at", "2018-12-04 03:17:47.969051"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2559” for 127.0.0.1 at 2018-12-04 01:17:47 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:47.973279"], ["last_sign_in_at", "2018-12-04 03:17:47.973279"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:47.974228"], ["id", 3021]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2559"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2559], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C9eI4yJgt10A8UAmBlpFJ.z7VCPRRfKYuS/5hCfGHYxL9blxljmhW"], ["created_at", "2018-12-04 03:17:47.996628"], ["updated_at", "2018-12-04 03:17:47.996628"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.000992"], ["updated_at", "2018-12-04 03:17:48.000992"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2560” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.004936"], ["last_sign_in_at", "2018-12-04 03:17:48.004936"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.005929"], ["id", 3022]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2560"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2560], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.023173"], ["updated_at", "2018-12-04 03:17:48.023173"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2561” for 127.0.0.1 at 2018-12-04 01:17:48 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2561"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oJ2JqPcPw8OlWrZ11ZadgOlNrouOoBdkjLSBbzP9i9yOpO4Bdx852"], ["created_at", "2018-12-04 03:17:48.038514"], ["updated_at", "2018-12-04 03:17:48.038514"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.042681"], ["updated_at", "2018-12-04 03:17:48.042681"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2562” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.046522"], ["last_sign_in_at", "2018-12-04 03:17:48.046522"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.047931"], ["id", 3023]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2562"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 13ms (Views: 11.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.073211"], ["updated_at", "2018-12-04 03:17:48.073211"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2563” for 127.0.0.1 at 2018-12-04 01:17:48 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2563"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wQSbDYUvjcrd93c7urMMJOwrk5.2dWt5yFXPvx8DvsTd.4meiCbI2"], ["created_at", "2018-12-04 03:17:48.087699"], ["updated_at", "2018-12-04 03:17:48.087699"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.092165"], ["updated_at", "2018-12-04 03:17:48.092165"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2564/edit” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.096050"], ["last_sign_in_at", "2018-12-04 03:17:48.096050"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.097006"], ["id", 3024]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2564"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2564], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Raflf/G7m2CrCCWghLeIU.xoWD1UmVD99UeigAfFrYgKtsMsbN5EK"], ["created_at", "2018-12-04 03:17:48.122220"], ["updated_at", "2018-12-04 03:17:48.122220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.126402"], ["updated_at", "2018-12-04 03:17:48.126402"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2565/edit” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.130372"], ["last_sign_in_at", "2018-12-04 03:17:48.130372"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.131450"], ["id", 3025]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2565"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2565], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.150616"], ["updated_at", "2018-12-04 03:17:48.150616"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2566” for 127.0.0.1 at 2018-12-04 01:17:48 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2566"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$j/9yOv046fdMeD9NL2Uoru21UIxjjVBoyKTtlCC67U9BerrVcq3ie"], ["created_at", "2018-12-04 03:17:48.165828"], ["updated_at", "2018-12-04 03:17:48.165828"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.171325"], ["last_sign_in_at", "2018-12-04 03:17:48.171325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.172376"], ["id", 3026]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.180984"], ["updated_at", "2018-12-04 03:17:48.180984"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/..puuHPMbZdsF1EYhQnm.exjtmiH3xdMhRnprinwNAfUANPJeW5a"], ["created_at", "2018-12-04 03:17:48.197872"], ["updated_at", "2018-12-04 03:17:48.197872"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.203325"], ["last_sign_in_at", "2018-12-04 03:17:48.203325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.204328"], ["id", 3027]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.211397"], ["updated_at", "2018-12-04 03:17:48.211397"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y2aqmMAhPAClW21dA8Ys0.34RPZD66We69u6hxziAxLx29EEUUntK"], ["created_at", "2018-12-04 03:17:48.224512"], ["updated_at", "2018-12-04 03:17:48.224512"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.229811"], ["last_sign_in_at", "2018-12-04 03:17:48.229811"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.230837"], ["id", 3028]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$72X6gMtn0GxtkDVH51XpReHxHt.bkBR2.CYLGHqjUK3MZKoGfTgBq"], ["created_at", "2018-12-04 03:17:48.251121"], ["updated_at", "2018-12-04 03:17:48.251121"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.256775"], ["last_sign_in_at", "2018-12-04 03:17:48.256775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.257889"], ["id", 3029]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$982nB34Z3BtcChwQtZFtiub2PdDINLcd/ShMeXEJ/cgAzskO07T4q"], ["created_at", "2018-12-04 03:17:48.277382"], ["updated_at", "2018-12-04 03:17:48.277382"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.282631"], ["last_sign_in_at", "2018-12-04 03:17:48.282631"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.283729"], ["id", 3030]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I8JbKGXirhCoZQL8nfb13e7GMX0xm.bEj6/SNoj.vUXjWZOuNveji"], ["created_at", "2018-12-04 03:17:48.298888"], ["updated_at", "2018-12-04 03:17:48.298888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.303270"], ["updated_at", "2018-12-04 03:17:48.303270"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2569” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.308763"], ["last_sign_in_at", "2018-12-04 03:17:48.308763"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.309832"], ["id", 3031]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2569"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2569], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:17:48.318311"], ["id", 2569]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2569 Completed 302 Found in 7ms (ActiveRecord: 1.8ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bMzbM6pSCf1SOcG7Lz9rgepSrB.McATgSZ6AKRi.bKksE9QlXlEeK"], ["created_at", "2018-12-04 03:17:48.333139"], ["updated_at", "2018-12-04 03:17:48.333139"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.337776"], ["updated_at", "2018-12-04 03:17:48.337776"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2570” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.342670"], ["last_sign_in_at", "2018-12-04 03:17:48.342670"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.343778"], ["id", 3032]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2570"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2570], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:17:48.351482"], ["id", 2570]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2570 Completed 302 Found in 6ms (ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bVyaKCZK1i2MUpRxVW/Df.lubzB3/aRSf9cU91NNgv.UkkHY8kRZS"], ["created_at", "2018-12-04 03:17:48.364285"], ["updated_at", "2018-12-04 03:17:48.364285"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.368361"], ["updated_at", "2018-12-04 03:17:48.368361"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2571” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.373731"], ["last_sign_in_at", "2018-12-04 03:17:48.373731"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.375082"], ["id", 3033]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2571"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2571], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.6ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-admin.html.erb (2.1ms)

Completed 200 OK in 16ms (Views: 10.2ms | ActiveRecord: 1.4ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eWVA4guom8V9JukiFnhWCu8F8tdAJrCvOZ1miqlgCON8tVCMOtHHu"], ["created_at", "2018-12-04 03:17:48.409228"], ["updated_at", "2018-12-04 03:17:48.409228"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.415398"], ["updated_at", "2018-12-04 03:17:48.415398"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2572” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.421033"], ["last_sign_in_at", "2018-12-04 03:17:48.421033"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.422297"], ["id", 3034]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2572"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2572], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-admin.html.erb (2.1ms)

Completed 200 OK in 16ms (Views: 10.0ms | ActiveRecord: 1.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wKe6YWvmcl3dY8jhYSXM9.dkXcYQLBq1M.4qIBpiiC9k5LSusTGFq"], ["created_at", "2018-12-04 03:17:48.453260"], ["updated_at", "2018-12-04 03:17:48.453260"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.459113"], ["last_sign_in_at", "2018-12-04 03:17:48.459113"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.460464"], ["id", 3035]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/O1ToBfRp9RGVfjquLfJwO0bDlXhvrWntJI/DE2oPvZQcb/fwV49O"], ["created_at", "2018-12-04 03:17:48.477915"], ["updated_at", "2018-12-04 03:17:48.477915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.482564"], ["updated_at", "2018-12-04 03:17:48.482564"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2573” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.486605"], ["last_sign_in_at", "2018-12-04 03:17:48.486605"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.487842"], ["id", 3036]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2573"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2573], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2573]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.8ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2hW52mpknnl4CScekcdFfOHlCPIig4nW0ywELieXr86l2Y9KnM6U."], ["created_at", "2018-12-04 03:17:48.509686"], ["updated_at", "2018-12-04 03:17:48.509686"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.514226"], ["updated_at", "2018-12-04 03:17:48.514226"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2574” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.518502"], ["last_sign_in_at", "2018-12-04 03:17:48.518502"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.519568"], ["id", 3037]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2574"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2574], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2574]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4wBRBVTkk5jt1INRJtSbCOn1Bg3c9TjTHN/DxL9F9iuUk4RHFykzi"], ["created_at", "2018-12-04 03:17:48.540316"], ["updated_at", "2018-12-04 03:17:48.540316"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.545165"], ["updated_at", "2018-12-04 03:17:48.545165"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2575” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.549253"], ["last_sign_in_at", "2018-12-04 03:17:48.549253"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.550486"], ["id", 3038]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2575"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IoZ8StaX6a6EazuShOi3le17FLIuraXiMmzfZfesXwdaWLfGJZQee"], ["created_at", "2018-12-04 03:17:48.567885"], ["updated_at", "2018-12-04 03:17:48.567885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.572564"], ["updated_at", "2018-12-04 03:17:48.572564"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2576” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.576858"], ["last_sign_in_at", "2018-12-04 03:17:48.576858"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.577794"], ["id", 3039]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2576"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eWwMuTGPDGLoWKbm6WEBweRjWtXkNHj0MFfqrSjm.yRMWbY2LRZVe"], ["created_at", "2018-12-04 03:17:48.600129"], ["updated_at", "2018-12-04 03:17:48.600129"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.604383"], ["last_sign_in_at", "2018-12-04 03:17:48.604383"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.605422"], ["id", 3040]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O25teIFRawjaHfiRdtjALud7Z4inek5x2RAtCTK1pgTu96wo1ObJC"], ["created_at", "2018-12-04 03:17:48.632194"], ["updated_at", "2018-12-04 03:17:48.632194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.636430"], ["updated_at", "2018-12-04 03:17:48.636430"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.639920"], ["updated_at", "2018-12-04 03:17:48.639920"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.643112"], ["updated_at", "2018-12-04 03:17:48.643112"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2577], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3041], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3041], ["room_id", 2577], ["created_at", "2018-12-04 03:17:48.650610"], ["updated_at", "2018-12-04 03:17:48.650610"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.655742"], ["last_sign_in_at", "2018-12-04 03:17:48.655742"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.656725"], ["id", 3041]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.1ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 22ms (Views: 8.1ms | ActiveRecord: 1.7ms)

Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.8ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kFV0iVZHtpqrMWzkgkmqcuwcMzJQLP/VWUkau44kGe3xxKxvOj08a"], ["created_at", "2018-12-04 03:17:48.696654"], ["updated_at", "2018-12-04 03:17:48.696654"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.700767"], ["updated_at", "2018-12-04 03:17:48.700767"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.704646"], ["updated_at", "2018-12-04 03:17:48.704646"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:17:48.707901"], ["updated_at", "2018-12-04 03:17:48.707901"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2580], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3042], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3042], ["room_id", 2580], ["created_at", "2018-12-04 03:17:48.715366"], ["updated_at", "2018-12-04 03:17:48.715366"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 01:17:48 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:17:48.719764"], ["last_sign_in_at", "2018-12-04 03:17:48.719764"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:17:48.720836"], ["id", 3042]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$6Y51StHbaGD2Sg6I2fSoH.3jHTDJGO/vtFm5EyK74tOlzUpMhkHtW"], ["created_at", "2018-12-04 03:18:17.382503"], ["updated_at", "2018-12-04 03:18:17.382503"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3043"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.5ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "JNpJ7zinwDc9XtGaMmX_DQ"], ["updated_at", "2018-12-04 03:18:17.403694"], ["id", 3043]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 03:18:17.408209"], ["reset_sent_at", "2018-12-04 03:18:17.407405"], ["id", 3043]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.6ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.6ms)

UserMailer#password_reset: processed outbound mail in 357.7ms Sent mail to teste@unb.com.br (11.8ms) Date: Tue, 04 Dec 2018 01:18:17 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05f1f9bd60d_39107d8f204895e@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f1f9bb6ac_39107d8f2048826";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f1f9bb6ac_39107d8f2048826 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/JNpJ7zinwDc9XtGaMmX_DQ/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05f1f9bb6ac_39107d8f2048826 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/JNpJ7zinwDc9XtGaMmX_DQ/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05f1f9bb6ac_39107d8f2048826–

Redirected to test.host/login Completed 302 Found in 387ms (ActiveRecord: 4.0ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$jgv79I48Y0M/0BjZOpiqYuaOJUX39EyWgUGhAxLerVHSH.3WFKIuK"], ["created_at", "2018-12-04 03:18:17.792100"], ["updated_at", "2018-12-04 03:18:17.792100"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.5ms

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$SYoA.gdGQyHY4WU3muya3e4AiC7gVvza4JH.jfQ7zfcsEFHLZcTB."], ["created_at", "2018-12-04 03:18:17.810318"], ["updated_at", "2018-12-04 03:18:17.810318"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3045"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$Lye/fUrDaEIRgyKC4jIds.s7HoKC7XvvVv5lRQ.0opjvGCM3Mk4tu"], ["updated_at", "2018-12-04 03:18:17.820429"], ["id", 3045]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 2.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$/wHAZXvK3HOvbURB4mxmpeuOJZQsszuXytCh80rEaOoKHMNnTbdji"], ["created_at", "2018-12-04 03:18:17.833223"], ["updated_at", "2018-12-04 03:18:17.833223"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3046"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$mK9vsoNpWQ7CZCM532ZNdO3JMOqygayAntvBn0TdPf9LQw0MdrVzi"], ["created_at", "2018-12-04 03:18:17.853717"], ["updated_at", "2018-12-04 03:18:17.853717"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3047"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$Ptkbtm97/8XMz9Iv5oR4nuJVwUxvOtcge4abs/Jsz4vFg5d5k4QWW"], ["created_at", "2018-12-04 03:18:17.885683"], ["updated_at", "2018-12-04 03:18:17.885683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3048"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 7ms (Views: 0.9ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$pm0cUpTfGWakXz/bpqIeYOJnBy7HXNOFR0SdC3nimzCpxnVvuiibi"], ["created_at", "2018-12-04 03:18:17.905629"], ["updated_at", "2018-12-04 03:18:17.905629"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3049"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Gkm6e/VPJsPmvNM17aZT8OU6CVzPBjq0IoTooDtxUG1OSpn6M.NNO"], ["created_at", "2018-12-04 03:18:17.924375"], ["updated_at", "2018-12-04 03:18:17.924375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.6ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C.uuJzWAwfRwJ0QCHmD7x.J8EwETk/GQpnqLJiP3ADuc4ispqe7jC"], ["created_at", "2018-12-04 03:18:17.940931"], ["updated_at", "2018-12-04 03:18:17.940931"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.5ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tut6v6lRvHwTuHp8yqNcNOLaYDiK/gVG8usVg7Eipc475JKwa/cv2"], ["created_at", "2018-12-04 03:18:18.041999"], ["updated_at", "2018-12-04 03:18:18.041999"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.046827"], ["updated_at", "2018-12-04 03:18:18.046827"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.060731"], ["last_sign_in_at", "2018-12-04 03:18:18.060731"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.062012"], ["id", 3052]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2583"}
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2583], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3052], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3052], ["room_id", 2583], ["created_at", "2018-12-04 03:18:18.092624"], ["updated_at", "2018-12-04 03:18:18.092624"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 3.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2583], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.oeqDMl0F16Qg/c2CrMKVO54/ZDGX2JxYbcTdQFg69ssL61Uez7oG"], ["created_at", "2018-12-04 03:18:18.108907"], ["updated_at", "2018-12-04 03:18:18.108907"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.113257"], ["updated_at", "2018-12-04 03:18:18.113257"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.118527"], ["last_sign_in_at", "2018-12-04 03:18:18.118527"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.119757"], ["id", 3053]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2584"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2584], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3053], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3053], ["room_id", 2584], ["created_at", "2018-12-04 03:18:18.132019"], ["updated_at", "2018-12-04 03:18:18.132019"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$o6OBhkSkryNk4LCLHJdujOHyVb3AeZfu7F8yBvh7anX4cKu9RESKe"], ["created_at", "2018-12-04 03:18:18.145573"], ["updated_at", "2018-12-04 03:18:18.145573"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.150044"], ["updated_at", "2018-12-04 03:18:18.150044"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.155649"], ["last_sign_in_at", "2018-12-04 03:18:18.155649"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.156783"], ["id", 3054]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2585", "user_id"=>"3054"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2585], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3054], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3054], ["room_id", 2585], ["created_at", "2018-12-04 03:18:18.168273"], ["updated_at", "2018-12-04 03:18:18.168273"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.4ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:18 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2585", "user_id"=>"3054"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3054], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2585], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3054], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3054], ["room_id", 2585], ["created_at", "2018-12-04 03:18:18.184150"], ["updated_at", "2018-12-04 03:18:18.184150"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kjC0A8X0NZceH.9WPIZhduZMAQPrhe29hE56aE6FoVRlVc3P/IhMC"], ["created_at", "2018-12-04 03:18:18.204482"], ["updated_at", "2018-12-04 03:18:18.204482"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.208247"], ["updated_at", "2018-12-04 03:18:18.208247"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.213951"], ["last_sign_in_at", "2018-12-04 03:18:18.213951"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.215007"], ["id", 3055]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2586", "user_id"=>"3055"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2586], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3055], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3055], ["room_id", 2586], ["created_at", "2018-12-04 03:18:18.226299"], ["updated_at", "2018-12-04 03:18:18.226299"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.4ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:18 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2586", "user_id"=>"3055"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3055], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2586], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3055], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3055], ["room_id", 2586], ["created_at", "2018-12-04 03:18:18.241783"], ["updated_at", "2018-12-04 03:18:18.241783"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.1ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2586], ["user_id", 3055], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$05HGZOLTxFaODkYO7W79qOr8zIueifevXW59HMPBIdlCuLqhmRWq."], ["created_at", "2018-12-04 03:18:18.256944"], ["updated_at", "2018-12-04 03:18:18.256944"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.263259"], ["updated_at", "2018-12-04 03:18:18.263259"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.269788"], ["last_sign_in_at", "2018-12-04 03:18:18.269788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.270910"], ["id", 3056]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2587", "user_id"=>"3056"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2587], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3056], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3056], ["room_id", 2587], ["created_at", "2018-12-04 03:18:18.283151"], ["updated_at", "2018-12-04 03:18:18.283151"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.6ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:18 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2587", "user_id"=>"3056"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3056], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2587], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3056], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3056], ["room_id", 2587], ["created_at", "2018-12-04 03:18:18.299550"], ["updated_at", "2018-12-04 03:18:18.299550"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.5ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2587], ["user_id", 3056], ["status", 1], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$o4mctEw3rnoFGoa5hB/2HOisTC5opiVorM/5OeNwDhXME6yz0poc6"], ["created_at", "2018-12-04 03:18:18.313827"], ["updated_at", "2018-12-04 03:18:18.313827"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.318357"], ["updated_at", "2018-12-04 03:18:18.318357"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.323507"], ["last_sign_in_at", "2018-12-04 03:18:18.323507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.324520"], ["id", 3057]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2588"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2588], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FslvZdS.RfCx8UUANFos3eHpH6evcHNpy.NNMQXQ4FyEdEcwoTsYy"], ["created_at", "2018-12-04 03:18:18.342962"], ["updated_at", "2018-12-04 03:18:18.342962"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.347378"], ["updated_at", "2018-12-04 03:18:18.347378"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.352329"], ["last_sign_in_at", "2018-12-04 03:18:18.352329"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.353395"], ["id", 3058]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2589"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XVBWwXBNMVr6SL2pVBlvnuBw5DDUkjAQYPdGxBEL6VeKcEeAYqaPK"], ["created_at", "2018-12-04 03:18:18.370211"], ["updated_at", "2018-12-04 03:18:18.370211"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.374521"], ["updated_at", "2018-12-04 03:18:18.374521"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2590], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3059], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3059], ["room_id", 2590], ["created_at", "2018-12-04 03:18:18.382469"], ["updated_at", "2018-12-04 03:18:18.382469"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2590” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.386900"], ["last_sign_in_at", "2018-12-04 03:18:18.386900"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.387913"], ["id", 3059]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2590"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2590], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2590')
Rendered appointments/show.html.erb within layouts/application (14.5ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 225ms (Views: 220.5ms | ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/Rt19o4RbARMLsfDNBRHt.FxPYSR5VqrrF3YOWxOem/H/mlV6gWBq"], ["created_at", "2018-12-04 03:18:18.627277"], ["updated_at", "2018-12-04 03:18:18.627277"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.631679"], ["updated_at", "2018-12-04 03:18:18.631679"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2591], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3060], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3060], ["room_id", 2591], ["created_at", "2018-12-04 03:18:18.639683"], ["updated_at", "2018-12-04 03:18:18.639683"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2567/edit” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.644033"], ["last_sign_in_at", "2018-12-04 03:18:18.644033"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.645294"], ["id", 3060]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2567"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2567], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 0.7ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3rPa5KkqjfnIu.xV6VM6Nu4WMw.jemqSlrxYJuZbX/Jsol.Wfx3Y2"], ["created_at", "2018-12-04 03:18:18.675011"], ["updated_at", "2018-12-04 03:18:18.675011"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.679601"], ["last_sign_in_at", "2018-12-04 03:18:18.679601"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.680811"], ["id", 3061]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TpoyJgKon0kojfnjPqTBjuXotCmp1lfNr0/0CyqGH1u3P8nbOj3P6"], ["created_at", "2018-12-04 03:18:18.706509"], ["updated_at", "2018-12-04 03:18:18.706509"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.710770"], ["updated_at", "2018-12-04 03:18:18.710770"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2592], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3062], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3062], ["room_id", 2592], ["created_at", "2018-12-04 03:18:18.719560"], ["updated_at", "2018-12-04 03:18:18.719560"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2592], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3062], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3062], ["room_id", 2592], ["created_at", "2018-12-04 03:18:18.728092"], ["updated_at", "2018-12-04 03:18:18.728092"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.732441"], ["last_sign_in_at", "2018-12-04 03:18:18.732441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.733517"], ["id", 3062]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3062]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.7ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 21ms (Views: 10.2ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rYAxrPbACScKgfHmKUE1Jehex9d3x36FxTliq2oAMVIqSmmtFgmr6"], ["created_at", "2018-12-04 03:18:18.769162"], ["updated_at", "2018-12-04 03:18:18.769162"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.774218"], ["updated_at", "2018-12-04 03:18:18.774218"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2593], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3063], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3063], ["room_id", 2593], ["created_at", "2018-12-04 03:18:18.783456"], ["updated_at", "2018-12-04 03:18:18.783456"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2593], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3063], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3063], ["room_id", 2593], ["created_at", "2018-12-04 03:18:18.794657"], ["updated_at", "2018-12-04 03:18:18.794657"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.799177"], ["last_sign_in_at", "2018-12-04 03:18:18.799177"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.800340"], ["id", 3063]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3063]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TDyGRe55yjtjPVoRpIqJB.eQJ7bLmSwnYVTl7VoDHcp/BEUtCknbi"], ["created_at", "2018-12-04 03:18:18.827879"], ["updated_at", "2018-12-04 03:18:18.827879"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.833247"], ["updated_at", "2018-12-04 03:18:18.833247"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2594], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3064], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3064], ["room_id", 2594], ["created_at", "2018-12-04 03:18:18.841713"], ["updated_at", "2018-12-04 03:18:18.841713"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2572” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.846362"], ["last_sign_in_at", "2018-12-04 03:18:18.846362"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.847570"], ["id", 3064]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2572"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2572], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2572]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.9ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Un6jTIFRNF6QkRgfHebtnufmLGxToQmblaB2qVAByDtNJ6VUykK7i"], ["created_at", "2018-12-04 03:18:18.871823"], ["updated_at", "2018-12-04 03:18:18.871823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.876579"], ["updated_at", "2018-12-04 03:18:18.876579"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fRLRCFwrYuD/.6AeYWasNO8xR/j/vhwB1XvRWHQNnDRE.IOUNQGIm"], ["created_at", "2018-12-04 03:18:18.884534"], ["updated_at", "2018-12-04 03:18:18.884534"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2595], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3066], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3066], ["room_id", 2595], ["created_at", "2018-12-04 03:18:18.893770"], ["updated_at", "2018-12-04 03:18:18.893770"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2573” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.899287"], ["last_sign_in_at", "2018-12-04 03:18:18.899287"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.900493"], ["id", 3065]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2573"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2573], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2595], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3066], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 9ms (ActiveRecord: 2.1ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3BGF.FG6K9anKOily2KV7uYAudKi/YIdrfszBhkEvrYQS.iNP17TC"], ["created_at", "2018-12-04 03:18:18.926800"], ["updated_at", "2018-12-04 03:18:18.926800"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.931432"], ["updated_at", "2018-12-04 03:18:18.931432"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xLTgq4hYWbTv206HPFH57O7vaddTCy8RKgBvAeBK2mLtqxAsC3MkC"], ["created_at", "2018-12-04 03:18:18.939608"], ["updated_at", "2018-12-04 03:18:18.939608"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2596], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3068], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3068], ["room_id", 2596], ["created_at", "2018-12-04 03:18:18.948154"], ["updated_at", "2018-12-04 03:18:18.948154"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2574” for 127.0.0.1 at 2018-12-04 01:18:18 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:18.953158"], ["last_sign_in_at", "2018-12-04 03:18:18.953158"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:18.954123"], ["id", 3067]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2574"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2574], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2596], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3068], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$77AvvI242jvEBCjrNtMKMONWQpiqUvIEonmaw/L5qLxfvE4rE1sKm"], ["created_at", "2018-12-04 03:18:18.974853"], ["updated_at", "2018-12-04 03:18:18.974853"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:18.978809"], ["updated_at", "2018-12-04 03:18:18.978809"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TCYmc8c/0OHKEqcSWIUyPexYafSJL.6rVqRgsQ/kGQuNUF102e1SK"], ["created_at", "2018-12-04 03:18:18.985746"], ["updated_at", "2018-12-04 03:18:18.985746"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2597], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3070], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3070], ["room_id", 2597], ["created_at", "2018-12-04 03:18:18.995401"], ["updated_at", "2018-12-04 03:18:18.995401"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2575” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.001311"], ["last_sign_in_at", "2018-12-04 03:18:19.001311"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.002388"], ["id", 3069]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2575"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2575], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2597], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3070], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-04 03:18:19.013755"], ["id", 2575]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 10ms (ActiveRecord: 2.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gwvt1DXCVZn2yKxVAsYR7eKPba9Rt3dVQSis/9LEZ/RiVb.5ARuqu"], ["created_at", "2018-12-04 03:18:19.027759"], ["updated_at", "2018-12-04 03:18:19.027759"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.032350"], ["updated_at", "2018-12-04 03:18:19.032350"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TTpHupbIdJXRvo00LPikYed98rXRVdWOUuszwQc/fOQSxTuO7bLa."], ["created_at", "2018-12-04 03:18:19.040105"], ["updated_at", "2018-12-04 03:18:19.040105"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2598], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3072], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3072], ["room_id", 2598], ["created_at", "2018-12-04 03:18:19.048283"], ["updated_at", "2018-12-04 03:18:19.048283"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:18:19.052284"], ["id", 2576]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2598], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3072], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3072], ["room_id", 2598], ["created_at", "2018-12-04 03:18:19.061963"], ["updated_at", "2018-12-04 03:18:19.061963"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:18:19.066712"], ["id", 2577]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.070618"], ["last_sign_in_at", "2018-12-04 03:18:19.070618"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.071686"], ["id", 3071]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3072], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2598], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3072], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2598], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.1ms)
Rendered layouts/_header-admin.html.erb (2.9ms)

Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 2.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$skqAAwfTWZCICA75WE7AV.PUVLUwPsm1.5NvG4auVUoGkGfeb8hD6"], ["created_at", "2018-12-04 03:18:19.103319"], ["updated_at", "2018-12-04 03:18:19.103319"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.107360"], ["updated_at", "2018-12-04 03:18:19.107360"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VhVdHEf6PeA6Lmeweg7CU.E9EEHa.wurogV49NkGjaP4YCLk1oYQC"], ["created_at", "2018-12-04 03:18:19.115003"], ["updated_at", "2018-12-04 03:18:19.115003"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2599], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3074], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3074], ["room_id", 2599], ["created_at", "2018-12-04 03:18:19.123109"], ["updated_at", "2018-12-04 03:18:19.123109"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:18:19.127397"], ["id", 2578]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2599], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3074], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3074], ["room_id", 2599], ["created_at", "2018-12-04 03:18:19.135040"], ["updated_at", "2018-12-04 03:18:19.135040"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:18:19.138658"], ["id", 2579]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.142364"], ["last_sign_in_at", "2018-12-04 03:18:19.142364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.143359"], ["id", 3073]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3074], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2599], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3074], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2599], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (6.9ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4.B.yaYdflcA3do7Nldufu/p93PumpxQMdMTS/UU4OWXe6xnrf1vS"], ["created_at", "2018-12-04 03:18:19.172418"], ["updated_at", "2018-12-04 03:18:19.172418"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.176255"], ["last_sign_in_at", "2018-12-04 03:18:19.176255"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.177395"], ["id", 3075]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (6.1ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HEYvD2mbC7.07gMWp.dEqezGw9NtsdJKi4z/0VV2VFgXOr8Q7yfp2"], ["created_at", "2018-12-04 03:18:19.206406"], ["updated_at", "2018-12-04 03:18:19.206406"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.210376"], ["last_sign_in_at", "2018-12-04 03:18:19.210376"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.211305"], ["id", 3076]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GE0N.bgfhGrLYp77HtfoKuZOPRi9pbNNh/mLfyNC0RuvXJDVEO0ES"], ["created_at", "2018-12-04 03:18:19.225677"], ["updated_at", "2018-12-04 03:18:19.225677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.229912"], ["last_sign_in_at", "2018-12-04 03:18:19.229912"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.230941"], ["id", 3077]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IKRa5xqS5ZImhSqN.Ps1NuyJfLCQcUmuqlnBeSnUklvw5Xb4Nfe16"], ["created_at", "2018-12-04 03:18:19.253487"], ["updated_at", "2018-12-04 03:18:19.253487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.257835"], ["last_sign_in_at", "2018-12-04 03:18:19.257835"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.258869"], ["id", 3078]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:18:19 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PlVC7r12VUWisoP64brKH.UtkiYafgjVlNgY0U9./8Q1BGwQiAUca"], ["created_at", "2018-12-04 03:18:19.291415"], ["updated_at", "2018-12-04 03:18:19.291415"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.295729"], ["updated_at", "2018-12-04 03:18:19.295729"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2600” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.299869"], ["last_sign_in_at", "2018-12-04 03:18:19.299869"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.300895"], ["id", 3079]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2600"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2600], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Afa9.OEg3LNKBy8pADm9p.smQYhFSSKvoNvsl.xdt2/lb4XKEt2Sa"], ["created_at", "2018-12-04 03:18:19.321951"], ["updated_at", "2018-12-04 03:18:19.321951"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.326090"], ["updated_at", "2018-12-04 03:18:19.326090"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2601” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.329988"], ["last_sign_in_at", "2018-12-04 03:18:19.329988"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.330994"], ["id", 3080]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2601"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2601], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.346802"], ["updated_at", "2018-12-04 03:18:19.346802"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2602” for 127.0.0.1 at 2018-12-04 01:18:19 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2602"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dIzj14ogfJRE8PUsP7C3Bu103a0llXL6nwYWSuj97nQsM44M/ZTGq"], ["created_at", "2018-12-04 03:18:19.361067"], ["updated_at", "2018-12-04 03:18:19.361067"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.365118"], ["updated_at", "2018-12-04 03:18:19.365118"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2603” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.368808"], ["last_sign_in_at", "2018-12-04 03:18:19.368808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.369635"], ["id", 3081]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2603"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.388657"], ["updated_at", "2018-12-04 03:18:19.388657"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2604” for 127.0.0.1 at 2018-12-04 01:18:19 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2604"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TAX7IlRKmgkWavNM7wEFTeTH7uUhdiupYBcTbDL90TVAdv0uVAlxm"], ["created_at", "2018-12-04 03:18:19.402663"], ["updated_at", "2018-12-04 03:18:19.402663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.406437"], ["updated_at", "2018-12-04 03:18:19.406437"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2605/edit” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.409838"], ["last_sign_in_at", "2018-12-04 03:18:19.409838"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.410704"], ["id", 3082]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2605"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2605], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XIQwGJ4bUvtv99Zd6dM70eJ9eKK7iV9BmCWrkrjrM1fVrphoOy1Ue"], ["created_at", "2018-12-04 03:18:19.434400"], ["updated_at", "2018-12-04 03:18:19.434400"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.438125"], ["updated_at", "2018-12-04 03:18:19.438125"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2606/edit” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.441669"], ["last_sign_in_at", "2018-12-04 03:18:19.441669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.442548"], ["id", 3083]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2606"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2606], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.461450"], ["updated_at", "2018-12-04 03:18:19.461450"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2607” for 127.0.0.1 at 2018-12-04 01:18:19 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2607"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4r.5d.drlTra1f5eu06xN.ILRp0mrwNK3DOLluDGt2A.jrP3CRNkq"], ["created_at", "2018-12-04 03:18:19.475173"], ["updated_at", "2018-12-04 03:18:19.475173"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.480166"], ["last_sign_in_at", "2018-12-04 03:18:19.480166"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.481210"], ["id", 3084]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.487441"], ["updated_at", "2018-12-04 03:18:19.487441"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$37.P8ygYZpuE3X75JXc8MeGZGtKwHLi70sxaqWR043SPIpk45Z7DW"], ["created_at", "2018-12-04 03:18:19.501096"], ["updated_at", "2018-12-04 03:18:19.501096"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.506192"], ["last_sign_in_at", "2018-12-04 03:18:19.506192"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.507136"], ["id", 3085]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.513138"], ["updated_at", "2018-12-04 03:18:19.513138"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FhVxZEL2YRXnRy0q0eqMcOtWtTwmSiizrN76usBuxAo1Y8gJWm6qO"], ["created_at", "2018-12-04 03:18:19.525053"], ["updated_at", "2018-12-04 03:18:19.525053"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.530107"], ["last_sign_in_at", "2018-12-04 03:18:19.530107"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.531062"], ["id", 3086]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3Vah/DfljL8BLr5AS/QOmeMShxl3C4kbrQ997GrTJLwtx.umPvQoO"], ["created_at", "2018-12-04 03:18:19.550489"], ["updated_at", "2018-12-04 03:18:19.550489"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.555875"], ["last_sign_in_at", "2018-12-04 03:18:19.555875"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.556974"], ["id", 3087]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HHWAY6r1CGtGI7bpXykALO1JSdnlbmtMRubqMsEazubIfJrwWyzDm"], ["created_at", "2018-12-04 03:18:19.575119"], ["updated_at", "2018-12-04 03:18:19.575119"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.580742"], ["last_sign_in_at", "2018-12-04 03:18:19.580742"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.581739"], ["id", 3088]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eiXvaWjZ8QMCDE6vQAlqmuZCcV7VaD0ABIv7zr83gFEsMr671QtRK"], ["created_at", "2018-12-04 03:18:19.596754"], ["updated_at", "2018-12-04 03:18:19.596754"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.600939"], ["updated_at", "2018-12-04 03:18:19.600939"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2610” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.605556"], ["last_sign_in_at", "2018-12-04 03:18:19.605556"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.606578"], ["id", 3089]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2610"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2610], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:18:19.614881"], ["id", 2610]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2610 Completed 302 Found in 7ms (ActiveRecord: 1.5ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2NwqnyIsj.gNKuxy.yirf.Tsrsk0jQUPe/LFnQrvGKPWGnQoTUC.m"], ["created_at", "2018-12-04 03:18:19.629146"], ["updated_at", "2018-12-04 03:18:19.629146"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.633435"], ["updated_at", "2018-12-04 03:18:19.633435"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2611” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.638031"], ["last_sign_in_at", "2018-12-04 03:18:19.638031"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.639138"], ["id", 3090]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2611"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2611], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:18:19.647397"], ["id", 2611]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2611 Completed 302 Found in 7ms (ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sMG.xrpWdPU8bgQRCQ0WHOr0e6mdQnP9.Y5Vt44tvBK5hv.kX3pea"], ["created_at", "2018-12-04 03:18:19.660728"], ["updated_at", "2018-12-04 03:18:19.660728"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.665052"], ["updated_at", "2018-12-04 03:18:19.665052"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2612” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.669621"], ["last_sign_in_at", "2018-12-04 03:18:19.669621"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.670701"], ["id", 3091]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2612"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2612], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 1.0ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iTJWg2QtN6VNkx4Z1t222.hEcjY4uimoZYuKDLmMWUSrQ/TROyspC"], ["created_at", "2018-12-04 03:18:19.698635"], ["updated_at", "2018-12-04 03:18:19.698635"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.702782"], ["updated_at", "2018-12-04 03:18:19.702782"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2613” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.707967"], ["last_sign_in_at", "2018-12-04 03:18:19.707967"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.709011"], ["id", 3092]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2613"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2613], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8VNZLGXwukN0XgFcWXzl/ultNXaBJ7VolmJxMDWUCLSdUIiyE0jzm"], ["created_at", "2018-12-04 03:18:19.735719"], ["updated_at", "2018-12-04 03:18:19.735719"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.741572"], ["last_sign_in_at", "2018-12-04 03:18:19.741572"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.742585"], ["id", 3093]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0D/Vyt7d1hrOCEAPcY0XhOlL.mX0phqAPUy0qVxpJouyKbY7Jk.su"], ["created_at", "2018-12-04 03:18:19.757270"], ["updated_at", "2018-12-04 03:18:19.757270"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.761541"], ["updated_at", "2018-12-04 03:18:19.761541"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2614” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.765269"], ["last_sign_in_at", "2018-12-04 03:18:19.765269"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.766265"], ["id", 3094]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2614"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2614], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2614]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tGUsjr0EqCZbXbPzV73Isek/GdgsZoJE0ZaH7e/JifGKMpNWDSUIq"], ["created_at", "2018-12-04 03:18:19.786318"], ["updated_at", "2018-12-04 03:18:19.786318"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.790487"], ["updated_at", "2018-12-04 03:18:19.790487"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2615” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.794310"], ["last_sign_in_at", "2018-12-04 03:18:19.794310"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.795341"], ["id", 3095]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2615"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2615], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2615]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8zF2A3Vr0qymdW9bfR0fQ.ZGm2muMV4X.cIZdOrFSkyX1LDo/cc72"], ["created_at", "2018-12-04 03:18:19.814837"], ["updated_at", "2018-12-04 03:18:19.814837"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.819134"], ["updated_at", "2018-12-04 03:18:19.819134"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2616” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.822907"], ["last_sign_in_at", "2018-12-04 03:18:19.822907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.823910"], ["id", 3096]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2616"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OWWXrn4wEbxPk01lbbMqkuILqrxpegVROeaxXOGuV6B2ZnROimKEe"], ["created_at", "2018-12-04 03:18:19.839266"], ["updated_at", "2018-12-04 03:18:19.839266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.843194"], ["updated_at", "2018-12-04 03:18:19.843194"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2617” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.846787"], ["last_sign_in_at", "2018-12-04 03:18:19.846787"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.847657"], ["id", 3097]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2617"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0SJsGIvDIT5IFa9QIVE/m.eL7vETs85d4L.EAuhjAQiiO02oSv0Zq"], ["created_at", "2018-12-04 03:18:19.861194"], ["updated_at", "2018-12-04 03:18:19.861194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.865088"], ["last_sign_in_at", "2018-12-04 03:18:19.865088"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.866078"], ["id", 3098]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eUgJ21bgTzNaCp66tuhCmOqMSdR1dV9VACAlNmZd0gmq9RiJKxBke"], ["created_at", "2018-12-04 03:18:19.890216"], ["updated_at", "2018-12-04 03:18:19.890216"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.894033"], ["updated_at", "2018-12-04 03:18:19.894033"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.897564"], ["updated_at", "2018-12-04 03:18:19.897564"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.900989"], ["updated_at", "2018-12-04 03:18:19.900989"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2618], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3099], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3099], ["room_id", 2618], ["created_at", "2018-12-04 03:18:19.908219"], ["updated_at", "2018-12-04 03:18:19.908219"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.912459"], ["last_sign_in_at", "2018-12-04 03:18:19.912459"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.913415"], ["id", 3099]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.1ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 23ms (Views: 9.6ms | ActiveRecord: 1.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OIfezb7.E.jxMlhHMeFYJu5p5QnibZ.NPuU/mNNm.pCjomnOz1dcC"], ["created_at", "2018-12-04 03:18:19.950882"], ["updated_at", "2018-12-04 03:18:19.950882"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.955343"], ["updated_at", "2018-12-04 03:18:19.955343"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.959173"], ["updated_at", "2018-12-04 03:18:19.959173"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:19.962345"], ["updated_at", "2018-12-04 03:18:19.962345"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2621], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3100], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3100], ["room_id", 2621], ["created_at", "2018-12-04 03:18:19.970262"], ["updated_at", "2018-12-04 03:18:19.970262"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 01:18:19 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:19.975079"], ["last_sign_in_at", "2018-12-04 03:18:19.975079"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:19.976026"], ["id", 3100]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$j7FZVlRWiooG7D8k0CPYXezAMHwfXTH1UXkKvJOhS6wAox/RVoNfK"], ["created_at", "2018-12-04 03:18:59.141292"], ["updated_at", "2018-12-04 03:18:59.141292"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3101"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "oQe8zhgHyv47lkKdEAKbnw"], ["updated_at", "2018-12-04 03:18:59.163351"], ["id", 3101]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 03:18:59.168145"], ["reset_sent_at", "2018-12-04 03:18:59.167347"], ["id", 3101]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.8ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.6ms)

UserMailer#password_reset: processed outbound mail in 346.9ms Sent mail to teste@unb.com.br (11.7ms) Date: Tue, 04 Dec 2018 01:18:59 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05f2238029f_3940750f1c41185@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f2237e353_3940750f1c410b1";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f2237e353_3940750f1c410b1 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/oQe8zhgHyv47lkKdEAKbnw/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05f2237e353_3940750f1c410b1 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/oQe8zhgHyv47lkKdEAKbnw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05f2237e353_3940750f1c410b1–

Redirected to test.host/login Completed 302 Found in 377ms (ActiveRecord: 3.8ms)

 (0.6ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$0ii/8/IxnpredgisveDPBuem04QTIiz52FiUwjmhZCaQeBe0H2oly"], ["created_at", "2018-12-04 03:18:59.541663"], ["updated_at", "2018-12-04 03:18:59.541663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.2ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$Tdm1RADE7rGr0PxYN3byD.dzPOgVnx8Qq8mk.xietaWAeNZZ4BGHe"], ["created_at", "2018-12-04 03:18:59.561033"], ["updated_at", "2018-12-04 03:18:59.561033"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3103"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$x0bjX8UoJZWkSy1dEnj/YugSq.rosRjD8C/.K1rI1ll2bIgCHGQtO"], ["updated_at", "2018-12-04 03:18:59.571459"], ["id", 3103]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 2.1ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$6CH9MB14r.UQJbWxPfwPdOUV7SkmP6TZEXdFLq6el80Xl9Nin9s1G"], ["created_at", "2018-12-04 03:18:59.584779"], ["updated_at", "2018-12-04 03:18:59.584779"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3104"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$jSKho9O7t2Wp/VDdTd1CWe6B56xU3ydQ238evSxuJwv8ECma9ZFti"], ["created_at", "2018-12-04 03:18:59.605244"], ["updated_at", "2018-12-04 03:18:59.605244"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3105"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 19ms (Views: 2.3ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$x9ybdjRtsFnzpHHRuVE.3OR5ZS0Be3oCU9Xdu8tcYgcz/rt.CMObO"], ["created_at", "2018-12-04 03:18:59.637148"], ["updated_at", "2018-12-04 03:18:59.637148"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3106"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 7ms (Views: 0.9ms | ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$lPsmO96vQsnOjHlv1ZhvOOhD0p4zY32Z2tGHHbCwsbBupj9lXPE6e"], ["created_at", "2018-12-04 03:18:59.657221"], ["updated_at", "2018-12-04 03:18:59.657221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3107"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$13Q8wmB/oDZcSrNC206N7elGcTQZ3gHBOczHdMPpvftpbJucCBD6."], ["created_at", "2018-12-04 03:18:59.677197"], ["updated_at", "2018-12-04 03:18:59.677197"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.7ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N2wZNOq72A3yRRLQTqpXnuuIOehMZo/zceQL7WGxptpaGFiT2f.0W"], ["created_at", "2018-12-04 03:18:59.694480"], ["updated_at", "2018-12-04 03:18:59.694480"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.6ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PkNhJDr3nBILMlLeFuc.9epxQ53gEk2YZK95pBhtXymzWjUPSwHV2"], ["created_at", "2018-12-04 03:18:59.796802"], ["updated_at", "2018-12-04 03:18:59.796802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:59.800923"], ["updated_at", "2018-12-04 03:18:59.800923"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:59.814397"], ["last_sign_in_at", "2018-12-04 03:18:59.814397"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:59.815646"], ["id", 3110]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2624"}
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2624], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3110], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3110], ["room_id", 2624], ["created_at", "2018-12-04 03:18:59.846227"], ["updated_at", "2018-12-04 03:18:59.846227"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 3.2ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2624], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DL4bRhon.3pySdvZlvzxp.9zjxirEIqZPA/UZYwbOcOGpEeLWem8G"], ["created_at", "2018-12-04 03:18:59.862679"], ["updated_at", "2018-12-04 03:18:59.862679"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:59.866787"], ["updated_at", "2018-12-04 03:18:59.866787"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:59.872130"], ["last_sign_in_at", "2018-12-04 03:18:59.872130"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:59.873095"], ["id", 3111]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2625"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2625], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3111], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3111], ["room_id", 2625], ["created_at", "2018-12-04 03:18:59.885721"], ["updated_at", "2018-12-04 03:18:59.885721"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sRQ8HgzAUlP2ZKT7QVGAV.bXJAAFC4Vhu3sfQR0zh.uZaA8r.Yz1u"], ["created_at", "2018-12-04 03:18:59.898885"], ["updated_at", "2018-12-04 03:18:59.898885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:59.903257"], ["updated_at", "2018-12-04 03:18:59.903257"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:59.909024"], ["last_sign_in_at", "2018-12-04 03:18:59.909024"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:59.910050"], ["id", 3112]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2626", "user_id"=>"3112"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2626], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3112], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3112], ["room_id", 2626], ["created_at", "2018-12-04 03:18:59.921957"], ["updated_at", "2018-12-04 03:18:59.921957"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.5ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:59 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2626", "user_id"=>"3112"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3112], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2626], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3112], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3112], ["room_id", 2626], ["created_at", "2018-12-04 03:18:59.938960"], ["updated_at", "2018-12-04 03:18:59.938960"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0jbQoKd3DoqUVya34wolwOkkW/b3yuS89PfgpdseK7fS.7WptZGp2"], ["created_at", "2018-12-04 03:18:59.951657"], ["updated_at", "2018-12-04 03:18:59.951657"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:18:59.956075"], ["updated_at", "2018-12-04 03:18:59.956075"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:59 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:18:59.963445"], ["last_sign_in_at", "2018-12-04 03:18:59.963445"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:18:59.964853"], ["id", 3113]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2627", "user_id"=>"3113"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2627], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3113], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3113], ["room_id", 2627], ["created_at", "2018-12-04 03:18:59.978138"], ["updated_at", "2018-12-04 03:18:59.978138"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:18:59 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2627", "user_id"=>"3113"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3113], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2627], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3113], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3113], ["room_id", 2627], ["created_at", "2018-12-04 03:18:59.996608"], ["updated_at", "2018-12-04 03:18:59.996608"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 15ms (ActiveRecord: 3.7ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2627], ["user_id", 3113], ["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OcC2BUNKeTPEP73Jx.TWd.oJ.fKKaXxa.2VctAATXuFjbAZw3Uk/2"], ["created_at", "2018-12-04 03:19:00.014495"], ["updated_at", "2018-12-04 03:19:00.014495"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:00.020135"], ["updated_at", "2018-12-04 03:19:00.020135"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.026861"], ["last_sign_in_at", "2018-12-04 03:19:00.026861"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.028201"], ["id", 3114]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2628", "user_id"=>"3114"}
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2628], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3114], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3114], ["room_id", 2628], ["created_at", "2018-12-04 03:19:00.040283"], ["updated_at", "2018-12-04 03:19:00.040283"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:19:00 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2628", "user_id"=>"3114"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3114], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2628], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3114], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3114], ["room_id", 2628], ["created_at", "2018-12-04 03:19:00.060491"], ["updated_at", "2018-12-04 03:19:00.060491"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 15ms (ActiveRecord: 3.7ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2628], ["user_id", 3114], ["status", 1], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Wqv/x7Bf1f3h1TSvCV3IYevT4LeWEG/f0EXakwxqlob2qJ1eEqkZ."], ["created_at", "2018-12-04 03:19:00.075828"], ["updated_at", "2018-12-04 03:19:00.075828"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:00.080731"], ["updated_at", "2018-12-04 03:19:00.080731"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.085988"], ["last_sign_in_at", "2018-12-04 03:19:00.085988"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.087014"], ["id", 3115]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2629"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2629], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$18APnZflYwBF8HMlztEi6.ktFo2JeCg86HXPGAgCoWgDLVlYW1zIC"], ["created_at", "2018-12-04 03:19:00.106885"], ["updated_at", "2018-12-04 03:19:00.106885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:00.111736"], ["updated_at", "2018-12-04 03:19:00.111736"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.116579"], ["last_sign_in_at", "2018-12-04 03:19:00.116579"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.117607"], ["id", 3116]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2630"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3QKK9seZadDC5PQwHeI8me1rm4MqlOJ0Tl9d9i0fioJogzdM5rRl."], ["created_at", "2018-12-04 03:19:00.134664"], ["updated_at", "2018-12-04 03:19:00.134664"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:00.139300"], ["updated_at", "2018-12-04 03:19:00.139300"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2631], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3117], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3117], ["room_id", 2631], ["created_at", "2018-12-04 03:19:00.146913"], ["updated_at", "2018-12-04 03:19:00.146913"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2631” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.151314"], ["last_sign_in_at", "2018-12-04 03:19:00.151314"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.152251"], ["id", 3117]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2631"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2631], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2631')
Rendered appointments/show.html.erb within layouts/application (13.9ms)
Rendered layouts/_header-user.html.erb (3.0ms)

Completed 200 OK in 222ms (Views: 217.7ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.tA21N01jMrcSwaN3E/I7eg1bXlsOCfMobsJJsuf7PRCsaHK2Qcuu"], ["created_at", "2018-12-04 03:19:00.389692"], ["updated_at", "2018-12-04 03:19:00.389692"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:00.394276"], ["updated_at", "2018-12-04 03:19:00.394276"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2632], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3118], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3118], ["room_id", 2632], ["created_at", "2018-12-04 03:19:00.403358"], ["updated_at", "2018-12-04 03:19:00.403358"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2591/edit” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.407931"], ["last_sign_in_at", "2018-12-04 03:19:00.407931"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.409038"], ["id", 3118]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2591"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2591], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LsjBButwWAAwUArTUJw91eJlvjMKY4wMDy4kdQG80lrQyAymmqhwS"], ["created_at", "2018-12-04 03:19:00.438412"], ["updated_at", "2018-12-04 03:19:00.438412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.443858"], ["last_sign_in_at", "2018-12-04 03:19:00.443858"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.444948"], ["id", 3119]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (5.0ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$78EXB0GzOArw7voC6kKyKeqLFCdi7tQb3ZtojMf2Js0/zngzROYcS"], ["created_at", "2018-12-04 03:19:00.474683"], ["updated_at", "2018-12-04 03:19:00.474683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:00.479823"], ["updated_at", "2018-12-04 03:19:00.479823"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2633], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3120], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3120], ["room_id", 2633], ["created_at", "2018-12-04 03:19:00.488446"], ["updated_at", "2018-12-04 03:19:00.488446"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2633], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3120], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3120], ["room_id", 2633], ["created_at", "2018-12-04 03:19:00.497259"], ["updated_at", "2018-12-04 03:19:00.497259"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.501945"], ["last_sign_in_at", "2018-12-04 03:19:00.501945"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.503015"], ["id", 3120]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3120]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.0ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 20ms (Views: 10.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$p9egmV/cWoXtCcgjGlymMukPWRIBuWShd.zt9B8AiE8D2PZlC8Zxu"], ["created_at", "2018-12-04 03:19:00.538296"], ["updated_at", "2018-12-04 03:19:00.538296"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:00.543191"], ["updated_at", "2018-12-04 03:19:00.543191"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2634], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3121], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3121], ["room_id", 2634], ["created_at", "2018-12-04 03:19:00.551357"], ["updated_at", "2018-12-04 03:19:00.551357"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2634], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3121], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3121], ["room_id", 2634], ["created_at", "2018-12-04 03:19:00.561321"], ["updated_at", "2018-12-04 03:19:00.561321"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.566113"], ["last_sign_in_at", "2018-12-04 03:19:00.566113"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.567027"], ["id", 3121]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3121]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Cp7X4pu6ms2CYlgJVJdDPuMlSeWce01u1Dq75Rfhv.daSsbQ8tg5e"], ["created_at", "2018-12-04 03:19:00.593880"], ["updated_at", "2018-12-04 03:19:00.593880"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:00.598707"], ["updated_at", "2018-12-04 03:19:00.598707"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2635], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3122], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3122], ["room_id", 2635], ["created_at", "2018-12-04 03:19:00.606648"], ["updated_at", "2018-12-04 03:19:00.606648"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2596” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.610979"], ["last_sign_in_at", "2018-12-04 03:19:00.610979"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.612042"], ["id", 3122]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2596"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2596], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2596]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.8ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m5GelupHQDBskfE0CTXb5uCdG0g3.QY4jfxC73.HFRV/0WjsZIddS"], ["created_at", "2018-12-04 03:19:00.634866"], ["updated_at", "2018-12-04 03:19:00.634866"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:00.639667"], ["updated_at", "2018-12-04 03:19:00.639667"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vox1oOB.mnFlN/fi38YPAuiYBg0OT9HpxhzbkzOB8ftmMDqI0Dyn2"], ["created_at", "2018-12-04 03:19:00.647245"], ["updated_at", "2018-12-04 03:19:00.647245"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2636], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3124], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3124], ["room_id", 2636], ["created_at", "2018-12-04 03:19:00.657928"], ["updated_at", "2018-12-04 03:19:00.657928"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2597” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.663745"], ["last_sign_in_at", "2018-12-04 03:19:00.663745"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.664880"], ["id", 3123]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2597"}
Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2597], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2636], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3124], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 9ms (ActiveRecord: 2.2ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LPfu3BhAAjuyrR2brMSoPOGnd5UbYT36xkQ6kkGeuvKe03DjXqS3e"], ["created_at", "2018-12-04 03:19:00.691081"], ["updated_at", "2018-12-04 03:19:00.691081"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:00.695692"], ["updated_at", "2018-12-04 03:19:00.695692"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OGHsnybVv4Vm0uJ594BFdeJa1O7YZ9kBC4.EX0uJyern7r0T1WFIG"], ["created_at", "2018-12-04 03:19:00.705322"], ["updated_at", "2018-12-04 03:19:00.705322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2637], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3126], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3126], ["room_id", 2637], ["created_at", "2018-12-04 03:19:00.713904"], ["updated_at", "2018-12-04 03:19:00.713904"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2598” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.718592"], ["last_sign_in_at", "2018-12-04 03:19:00.718592"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.719656"], ["id", 3125]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2598"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2598], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2637], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3126], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lc0XkPOv3vs3eJu9Doev4uv5KmBVqHJ1KRIXwFqaW3WtmU.YMgcO2"], ["created_at", "2018-12-04 03:19:00.740424"], ["updated_at", "2018-12-04 03:19:00.740424"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:00.744452"], ["updated_at", "2018-12-04 03:19:00.744452"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$URd/okSrBDYghJ9jIqIbH.ma6nS/PIahWiU6T.ndbXwTGABOnkxzC"], ["created_at", "2018-12-04 03:19:00.751742"], ["updated_at", "2018-12-04 03:19:00.751742"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2638], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3128], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3128], ["room_id", 2638], ["created_at", "2018-12-04 03:19:00.760150"], ["updated_at", "2018-12-04 03:19:00.760150"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2599” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.765394"], ["last_sign_in_at", "2018-12-04 03:19:00.765394"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.766419"], ["id", 3127]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2599"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2599], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2638], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3128], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-04 03:19:00.778234"], ["id", 2599]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 10ms (ActiveRecord: 2.7ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$x4ZYDH/.lO3jp82qv6iKDOJKg2JGIHZGeB1dVpMHZ/LZBBak5Mbsm"], ["created_at", "2018-12-04 03:19:00.797005"], ["updated_at", "2018-12-04 03:19:00.797005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:00.802186"], ["updated_at", "2018-12-04 03:19:00.802186"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xytjxEmNblqpGuRVmHfahOyGychIsVKJ2YxLh2p.jUAgpAnHl.UTi"], ["created_at", "2018-12-04 03:19:00.810495"], ["updated_at", "2018-12-04 03:19:00.810495"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2639], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3130], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3130], ["room_id", 2639], ["created_at", "2018-12-04 03:19:00.818568"], ["updated_at", "2018-12-04 03:19:00.818568"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:19:00.822125"], ["id", 2600]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2639], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3130], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3130], ["room_id", 2639], ["created_at", "2018-12-04 03:19:00.829189"], ["updated_at", "2018-12-04 03:19:00.829189"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:19:00.832667"], ["id", 2601]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.836341"], ["last_sign_in_at", "2018-12-04 03:19:00.836341"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.837199"], ["id", 3129]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3130], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2639], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3130], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2639], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.0ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 2.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$geWpy40bcBjcKkpZAGFOee0l671FiWDXi9ncIPQl3AggSze6vJ3Pe"], ["created_at", "2018-12-04 03:19:00.867682"], ["updated_at", "2018-12-04 03:19:00.867682"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:00.871470"], ["updated_at", "2018-12-04 03:19:00.871470"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ea4dgwJrO7LtedzYUl8ovuNxPgFLlEg7sheExQ.f3QyjoUBnpjUm."], ["created_at", "2018-12-04 03:19:00.878955"], ["updated_at", "2018-12-04 03:19:00.878955"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2640], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3132], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3132], ["room_id", 2640], ["created_at", "2018-12-04 03:19:00.886599"], ["updated_at", "2018-12-04 03:19:00.886599"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:19:00.890510"], ["id", 2602]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2640], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3132], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3132], ["room_id", 2640], ["created_at", "2018-12-04 03:19:00.897647"], ["updated_at", "2018-12-04 03:19:00.897647"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:19:00.901151"], ["id", 2603]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.904907"], ["last_sign_in_at", "2018-12-04 03:19:00.904907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.905860"], ["id", 3131]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3132], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2640], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3132], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2640], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.1ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 14ms (Views: 10.5ms | ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$79pxnWVhZ6J5FI3Ux9zaleXEEB3zfeaWSS3pdHosBQOalKYmdhBv2"], ["created_at", "2018-12-04 03:19:00.935480"], ["updated_at", "2018-12-04 03:19:00.935480"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.939668"], ["last_sign_in_at", "2018-12-04 03:19:00.939668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.940666"], ["id", 3133]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (5.9ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7fqAtcX5qYZL.LMd5sVXieLTtgK6pP34.7jwOC0Tmvrm6EWqscC96"], ["created_at", "2018-12-04 03:19:00.969695"], ["updated_at", "2018-12-04 03:19:00.969695"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.973561"], ["last_sign_in_at", "2018-12-04 03:19:00.973561"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.974647"], ["id", 3134]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SGwX2xXsX981RKqp1W2Gd.0ljbiYBbSK.OXyN/46Nf/CT8ZizC/7K"], ["created_at", "2018-12-04 03:19:00.992503"], ["updated_at", "2018-12-04 03:19:00.992503"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:19:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:00.996856"], ["last_sign_in_at", "2018-12-04 03:19:00.996856"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:00.997862"], ["id", 3135]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GFvjAbkNGLgT8VJj6/BrrOb/GWneNE5YALJYuJgGoV6xjPQz7J9O."], ["created_at", "2018-12-04 03:19:01.021503"], ["updated_at", "2018-12-04 03:19:01.021503"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.025844"], ["last_sign_in_at", "2018-12-04 03:19:01.025844"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.026849"], ["id", 3136]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:19:01 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HHu4r7O4vpkIODOsma3OreuWm53.aMAjdaA65HFVuUIU6K8lEBS1."], ["created_at", "2018-12-04 03:19:01.059298"], ["updated_at", "2018-12-04 03:19:01.059298"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.063566"], ["updated_at", "2018-12-04 03:19:01.063566"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2641” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.067706"], ["last_sign_in_at", "2018-12-04 03:19:01.067706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.068762"], ["id", 3137]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2641"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2641], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yfbq0nJdODanc4THz4FLV.N.gY8cb43nBweCeTTZS4ijgUn0L9Bqe"], ["created_at", "2018-12-04 03:19:01.090666"], ["updated_at", "2018-12-04 03:19:01.090666"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.094847"], ["updated_at", "2018-12-04 03:19:01.094847"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2642” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.099020"], ["last_sign_in_at", "2018-12-04 03:19:01.099020"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.100093"], ["id", 3138]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2642"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2642], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.116657"], ["updated_at", "2018-12-04 03:19:01.116657"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2643” for 127.0.0.1 at 2018-12-04 01:19:01 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2643"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bg7Qt4AFgpmTFo1P/XrPT.qw1uKlv.23nFFTBQXn9HUBy0lgXhRPS"], ["created_at", "2018-12-04 03:19:01.132531"], ["updated_at", "2018-12-04 03:19:01.132531"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.136864"], ["updated_at", "2018-12-04 03:19:01.136864"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2644” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.140734"], ["last_sign_in_at", "2018-12-04 03:19:01.140734"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.141749"], ["id", 3139]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2644"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.162429"], ["updated_at", "2018-12-04 03:19:01.162429"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2645” for 127.0.0.1 at 2018-12-04 01:19:01 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2645"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EXEHL2s34AXsuZunVJYzBOdPhcf5nZgZsoPnK67zmw.USgh9eky7i"], ["created_at", "2018-12-04 03:19:01.177762"], ["updated_at", "2018-12-04 03:19:01.177762"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.182696"], ["updated_at", "2018-12-04 03:19:01.182696"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2646/edit” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.186956"], ["last_sign_in_at", "2018-12-04 03:19:01.186956"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.188010"], ["id", 3140]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2646"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2646], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.0ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hJ9xR2giz669hn7DqRH1IO7COMAS1pDIFmxUYTOhFrybwz90gRr.S"], ["created_at", "2018-12-04 03:19:01.214231"], ["updated_at", "2018-12-04 03:19:01.214231"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.218254"], ["updated_at", "2018-12-04 03:19:01.218254"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2647/edit” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.222362"], ["last_sign_in_at", "2018-12-04 03:19:01.222362"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.223525"], ["id", 3141]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2647"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2647], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.243773"], ["updated_at", "2018-12-04 03:19:01.243773"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2648” for 127.0.0.1 at 2018-12-04 01:19:01 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2648"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7aQaR31UG5I9oghIOKAzWuiAEUa1Pnpwu.VWlKHXchXRWwcubHPUq"], ["created_at", "2018-12-04 03:19:01.259282"], ["updated_at", "2018-12-04 03:19:01.259282"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.264712"], ["last_sign_in_at", "2018-12-04 03:19:01.264712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.265717"], ["id", 3142]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.273727"], ["updated_at", "2018-12-04 03:19:01.273727"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pBhLUdtqVHEhCBHJJOM0RecgL1p4prmGPZIg7FgFhsYkUC2shKJVK"], ["created_at", "2018-12-04 03:19:01.290812"], ["updated_at", "2018-12-04 03:19:01.290812"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.297127"], ["last_sign_in_at", "2018-12-04 03:19:01.297127"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.298173"], ["id", 3143]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.305344"], ["updated_at", "2018-12-04 03:19:01.305344"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2UQOBh5KQ9ZrOVVtLn7nBeSUlisgadk5yGUT6HXJ9MXsFfrnTsfzO"], ["created_at", "2018-12-04 03:19:01.319694"], ["updated_at", "2018-12-04 03:19:01.319694"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.325875"], ["last_sign_in_at", "2018-12-04 03:19:01.325875"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.326989"], ["id", 3144]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4kLg5/aNkSgCJCz70tlSSe7w.TBNR.8wjqmc1I6KeWVpflbPO8Qge"], ["created_at", "2018-12-04 03:19:01.348041"], ["updated_at", "2018-12-04 03:19:01.348041"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.359864"], ["last_sign_in_at", "2018-12-04 03:19:01.359864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.361118"], ["id", 3145]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.4ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nUG3B1kSLRnjILlbMlfc9uHbYggz7LFbSMJ/N1RJMl9Lhmt3LiI/O"], ["created_at", "2018-12-04 03:19:01.381017"], ["updated_at", "2018-12-04 03:19:01.381017"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.386881"], ["last_sign_in_at", "2018-12-04 03:19:01.386881"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.387903"], ["id", 3146]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rsy9GaDhBOziN9f0UeUcE.lgDHG3fVFf0oEiW9Lw9b.d13q8GwzOi"], ["created_at", "2018-12-04 03:19:01.403790"], ["updated_at", "2018-12-04 03:19:01.403790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.408667"], ["updated_at", "2018-12-04 03:19:01.408667"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2651” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.6ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.413920"], ["last_sign_in_at", "2018-12-04 03:19:01.413920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.415226"], ["id", 3147]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2651"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2651], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:19:01.423711"], ["id", 2651]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2651 Completed 302 Found in 7ms (ActiveRecord: 1.8ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/gM3rciJdDsxFggZrmwFFOgKAJLQWPOR/rHCmvMqWf4WZxEh4XJbe"], ["created_at", "2018-12-04 03:19:01.439056"], ["updated_at", "2018-12-04 03:19:01.439056"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.443473"], ["updated_at", "2018-12-04 03:19:01.443473"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2652” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.448521"], ["last_sign_in_at", "2018-12-04 03:19:01.448521"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.449609"], ["id", 3148]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2652"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2652], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:19:01.457920"], ["id", 2652]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2652 Completed 302 Found in 7ms (ActiveRecord: 1.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bXvSrQI6hSHELAoVqgr2WequLeWKHTndgEd8jBQj5osLpoMojI7xe"], ["created_at", "2018-12-04 03:19:01.475630"], ["updated_at", "2018-12-04 03:19:01.475630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.481443"], ["updated_at", "2018-12-04 03:19:01.481443"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2653” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.486469"], ["last_sign_in_at", "2018-12-04 03:19:01.486469"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.487638"], ["id", 3149]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2653"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2653], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 1.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n2xDsrjjjnb/wnKrlEu2dugHY0GYCXAP8.c03LMTyuKVGk9VGdS6a"], ["created_at", "2018-12-04 03:19:01.518391"], ["updated_at", "2018-12-04 03:19:01.518391"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.523613"], ["updated_at", "2018-12-04 03:19:01.523613"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2654” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.528764"], ["last_sign_in_at", "2018-12-04 03:19:01.528764"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.529965"], ["id", 3150]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2654"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2654], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 1.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$61dxeNY1er.R8/sDoTCB5OccDQQiLuaN26LRtUSf23V316/UFcdpO"], ["created_at", "2018-12-04 03:19:01.560086"], ["updated_at", "2018-12-04 03:19:01.560086"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.565810"], ["last_sign_in_at", "2018-12-04 03:19:01.565810"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.567006"], ["id", 3151]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0Kz6d.18RAQGV6QIPW7BnOkSGZPSspI3pRJh3gbEIZR9nKJrEZScq"], ["created_at", "2018-12-04 03:19:01.583482"], ["updated_at", "2018-12-04 03:19:01.583482"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.588034"], ["updated_at", "2018-12-04 03:19:01.588034"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2655” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.592204"], ["last_sign_in_at", "2018-12-04 03:19:01.592204"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.593303"], ["id", 3152]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2655"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2655], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2655]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Mm42n34P/ASFgE67LquWyODfmLJFPm3nh8M0NH1kctSFTZ2ZphUz6"], ["created_at", "2018-12-04 03:19:01.614609"], ["updated_at", "2018-12-04 03:19:01.614609"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.619184"], ["updated_at", "2018-12-04 03:19:01.619184"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2656” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.623048"], ["last_sign_in_at", "2018-12-04 03:19:01.623048"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.624103"], ["id", 3153]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2656"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2656], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2656]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gcrTEYLCXgPAhM944xp7i.lBwPwj5dHlNjACMjwJJFQD7.uQpkXdC"], ["created_at", "2018-12-04 03:19:01.644161"], ["updated_at", "2018-12-04 03:19:01.644161"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.648745"], ["updated_at", "2018-12-04 03:19:01.648745"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2657” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.652924"], ["last_sign_in_at", "2018-12-04 03:19:01.652924"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.653921"], ["id", 3154]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2657"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SLNUz2VnMFgk6NvGgYwd5eYXdQDqWkWY8SNKFV5ulQ02khgVWi6Mm"], ["created_at", "2018-12-04 03:19:01.670945"], ["updated_at", "2018-12-04 03:19:01.670945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.675382"], ["updated_at", "2018-12-04 03:19:01.675382"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2658” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.679497"], ["last_sign_in_at", "2018-12-04 03:19:01.679497"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.680560"], ["id", 3155]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2658"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DJhXuZXbvqEBxM4Cto99s.21MpC2tRZHpiSa7oG8N6T929PGYe8FK"], ["created_at", "2018-12-04 03:19:01.696404"], ["updated_at", "2018-12-04 03:19:01.696404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.701402"], ["last_sign_in_at", "2018-12-04 03:19:01.701402"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.702497"], ["id", 3156]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jKnLmsayyPAYypK95Lv4UeKbyGyaqw/oe5O69kCtM7LKJOZKPFxHW"], ["created_at", "2018-12-04 03:19:01.729011"], ["updated_at", "2018-12-04 03:19:01.729011"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.734149"], ["updated_at", "2018-12-04 03:19:01.734149"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.738251"], ["updated_at", "2018-12-04 03:19:01.738251"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.741850"], ["updated_at", "2018-12-04 03:19:01.741850"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2659], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3157], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3157], ["room_id", 2659], ["created_at", "2018-12-04 03:19:01.750362"], ["updated_at", "2018-12-04 03:19:01.750362"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.755253"], ["last_sign_in_at", "2018-12-04 03:19:01.755253"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.756432"], ["id", 3157]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 22ms (Views: 8.2ms | ActiveRecord: 1.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q3gawDWSkTVGtCi0s1e2G.fRaBoJzz5rEVtIT094P1niKAD170M2m"], ["created_at", "2018-12-04 03:19:01.794044"], ["updated_at", "2018-12-04 03:19:01.794044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.798482"], ["updated_at", "2018-12-04 03:19:01.798482"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.802548"], ["updated_at", "2018-12-04 03:19:01.802548"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:19:01.806092"], ["updated_at", "2018-12-04 03:19:01.806092"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2662], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3158], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3158], ["room_id", 2662], ["created_at", "2018-12-04 03:19:01.814864"], ["updated_at", "2018-12-04 03:19:01.814864"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 01:19:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:19:01.819565"], ["last_sign_in_at", "2018-12-04 03:19:01.819565"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:19:01.820550"], ["id", 3158]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (18.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (10.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xaBZqnhXKKS/dO.ZaEqT4.O8v/t4HSP2oPWmntbzLd96XGZx2r9JK"], ["created_at", "2018-12-04 03:35:04.385929"], ["updated_at", "2018-12-04 03:35:04.385929"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Nwc/w03.OlRDTuV20DWEPOrt53k04mTaA8qf.gmKdkj6QHwm5FiWm"], ["created_at", "2018-12-04 03:35:04.407820"], ["updated_at", "2018-12-04 03:35:04.407820"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:04.428103"], ["updated_at", "2018-12-04 03:35:04.428103"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2665], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3160], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3160], ["room_id", 2665], ["created_at", "2018-12-04 03:35:04.488929"], ["updated_at", "2018-12-04 03:35:04.488929"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2606"}
Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2606], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2665], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3160], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.4ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.5ms)

UserMailer#status_notification: processed outbound mail in 371.0ms Sent mail to 123@123.com (11.3ms) Date: Tue, 04 Dec 2018 01:35:04 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05f5e8d96ea_3c2b6f4f1445972@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f5e8d78bc_3c2b6f4f14458fe";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f5e8d78bc_3c2b6f4f14458fe Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05f5e8d78bc_3c2b6f4f14458fe Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05f5e8d78bc_3c2b6f4f14458fe–

Completed 302 Found in 394ms (ActiveRecord: 2.4ms)

 (0.7ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zKfwQTxD3uGJmsOpugXeA.TLC8xnfa.n1FqyerSwbax4ZaET13V.G"], ["created_at", "2018-12-04 03:35:04.907101"], ["updated_at", "2018-12-04 03:35:04.907101"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1EanDAtlNpTaRzm.Hf1oxuD2VqPIF0r4EmfItudWz9pqVShaeZzW2"], ["created_at", "2018-12-04 03:35:04.915577"], ["updated_at", "2018-12-04 03:35:04.915577"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:04.919569"], ["updated_at", "2018-12-04 03:35:04.919569"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2666], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3162], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3162], ["room_id", 2666], ["created_at", "2018-12-04 03:35:04.927963"], ["updated_at", "2018-12-04 03:35:04.927963"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2607"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2607], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2666], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3162], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-04 03:35:04.939970"], ["id", 2607]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (5.7ms) Date: Tue, 04 Dec 2018 01:35:04 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05f5e8e8045_3c2b6f4f144613b@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f5e8e7115_3c2b6f4f1446053";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f5e8e7115_3c2b6f4f1446053 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05f5e8e7115_3c2b6f4f1446053 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05f5e8e7115_3c2b6f4f1446053–

Completed 302 Found in 22ms (ActiveRecord: 3.2ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$x1dOA7eSaocbOX.K1Rhon.uAr2pXybj.njF8/AoSO8bpvo5aU3s36"], ["created_at", "2018-12-04 03:35:04.964340"], ["updated_at", "2018-12-04 03:35:04.964340"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$P9WkXphNT25Lx20quE99Ee4ONa6DmIiCzsbMLeUgVoG7zwLQyBYcq"], ["created_at", "2018-12-04 03:35:04.972482"], ["updated_at", "2018-12-04 03:35:04.972482"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:04.976652"], ["updated_at", "2018-12-04 03:35:04.976652"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2667], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3164], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3164], ["room_id", 2667], ["created_at", "2018-12-04 03:35:04.983973"], ["updated_at", "2018-12-04 03:35:04.983973"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I4VpRGc1R1i8ldPtQ6gileJ8DeUMTvgl2OiPD6NEQaCZGXeKhGMwG"], ["created_at", "2018-12-04 03:35:05.000392"], ["updated_at", "2018-12-04 03:35:05.000392"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$h23q.oDWEIpKZnkOOp9NneUNvLkXLhjykIAWzK2/KJ8Pd0HMVVhEy"], ["created_at", "2018-12-04 03:35:05.008608"], ["updated_at", "2018-12-04 03:35:05.008608"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:05.012690"], ["updated_at", "2018-12-04 03:35:05.012690"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2668], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3166], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3166], ["room_id", 2668], ["created_at", "2018-12-04 03:35:05.021063"], ["updated_at", "2018-12-04 03:35:05.021063"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2609], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$oKDGNt7TujEcZwkm.YIFW.wFJ2E6suo3l/eh5BQdJxAlDdTzBfRLa"], ["created_at", "2018-12-04 03:35:05.037354"], ["updated_at", "2018-12-04 03:35:05.037354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3167"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "2nSDfGk6133uT5m4qpHbBA"], ["updated_at", "2018-12-04 03:35:05.046800"], ["id", 3167]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 03:35:05.050913"], ["reset_sent_at", "2018-12-04 03:35:05.050096"], ["id", 3167]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)

UserMailer#password_reset: processed outbound mail in 10.7ms Sent mail to teste@unb.com.br (6.1ms) Date: Tue, 04 Dec 2018 01:35:05 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05f5e9106c4_3c2b6f4f14464a@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f5e9f68b_3c2b6f4f144633f";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f5e9f68b_3c2b6f4f144633f Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/2nSDfGk6133uT5m4qpHbBA/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05f5e9f68b_3c2b6f4f144633f Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/2nSDfGk6133uT5m4qpHbBA/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05f5e9f68b_3c2b6f4f144633f–

Redirected to test.host/login Completed 302 Found in 29ms (ActiveRecord: 3.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$w56VIqTKl/DrEUdkBZOK8utREgkM30pUX4xips7WpaGL1lI0m4nR2"], ["created_at", "2018-12-04 03:35:05.080229"], ["updated_at", "2018-12-04 03:35:05.080229"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 4.7ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$JEgTVwD1/qV3CnkgZxHm2.L5/UMzP8uqZc1Z3soPnQfYFaqVXnd0e"], ["created_at", "2018-12-04 03:35:05.098684"], ["updated_at", "2018-12-04 03:35:05.098684"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3169"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (25.1ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$pgW1pJkv8XiIjfjkvVK0pekFgZXYHttO6/vubRozdck0q6ZNXqTqi"], ["updated_at", "2018-12-04 03:35:05.108560"], ["id", 3169]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 34ms (ActiveRecord: 26.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$vo8aWyvOnMYO2IZhPyEQPuJZ8Q/cHmd7FDRQ/Cn.AZ76mdsyXIBEK"], ["created_at", "2018-12-04 03:35:05.150599"], ["updated_at", "2018-12-04 03:35:05.150599"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3170"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$NfFjHZQ4P7rzLM0U/rzPaetZoRHU7TVRtBNnTwOQi09Rmfx1fWg/q"], ["created_at", "2018-12-04 03:35:05.170316"], ["updated_at", "2018-12-04 03:35:05.170316"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3171"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 18ms (Views: 2.3ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$eqdLM13OdhIMLFJ3HaI8wu5v4UsynoTjgh2FWlQ7yXT3qeV4tsEA2"], ["created_at", "2018-12-04 03:35:05.199428"], ["updated_at", "2018-12-04 03:35:05.199428"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3172"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 7ms (Views: 0.9ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$Gj.o/L3fzOUeD1Blm4vFyuxlroBng3KsBYXVMZA04J1RNPHMQ3Hv6"], ["created_at", "2018-12-04 03:35:05.218565"], ["updated_at", "2018-12-04 03:35:05.218565"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3173"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SlghCqAqw/AhfBeG3EBgqOFevaKlnX.yZEF.g.44pLz7DUoN.cUqy"], ["created_at", "2018-12-04 03:35:05.237392"], ["updated_at", "2018-12-04 03:35:05.237392"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.1ms

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.NDCec1fit.xTg1J.yGRLe9GeRzSbbLcIZ7GPvktrgZLuDsL/3bAO"], ["created_at", "2018-12-04 03:35:05.254709"], ["updated_at", "2018-12-04 03:35:05.254709"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.5ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JDmT8zOMxIgmzwkjetlmPefZj1AWqkahxph1alFkFuuIsqkkIXuMq"], ["created_at", "2018-12-04 03:35:05.272630"], ["updated_at", "2018-12-04 03:35:05.272630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:05.277299"], ["updated_at", "2018-12-04 03:35:05.277299"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2669], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3176], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3176], ["room_id", 2669], ["created_at", "2018-12-04 03:35:05.285463"], ["updated_at", "2018-12-04 03:35:05.285463"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lbrstcS3zRZ2c9xXBX26Iezlux47.XhZ/I/1O8Bbk3lgd82eUJxCi"], ["created_at", "2018-12-04 03:35:05.302170"], ["updated_at", "2018-12-04 03:35:05.302170"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:05.306419"], ["updated_at", "2018-12-04 03:35:05.306419"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2670], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3177], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3177], ["room_id", 2670], ["created_at", "2018-12-04 03:35:05.314902"], ["updated_at", "2018-12-04 03:35:05.314902"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7xYrHiCD8hRlIfbjAORjkevL1i8EXQWQCjpUgXYOJrSaj18gtd/yu"], ["created_at", "2018-12-04 03:35:05.373993"], ["updated_at", "2018-12-04 03:35:05.373993"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:05.379114"], ["updated_at", "2018-12-04 03:35:05.379114"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:35:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:05.392928"], ["last_sign_in_at", "2018-12-04 03:35:05.392928"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:05.393992"], ["id", 3178]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2671"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2671], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3178], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3178], ["room_id", 2671], ["created_at", "2018-12-04 03:35:05.410960"], ["updated_at", "2018-12-04 03:35:05.410960"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.4ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2671], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$q5e8rLG.TRY.u3ct2tEpyO8KVTyySiMT8Pbyq9SVJcotewHzuv74q"], ["created_at", "2018-12-04 03:35:05.426635"], ["updated_at", "2018-12-04 03:35:05.426635"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:05.431272"], ["updated_at", "2018-12-04 03:35:05.431272"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:35:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:05.436584"], ["last_sign_in_at", "2018-12-04 03:35:05.436584"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:05.437666"], ["id", 3179]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2672"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2672], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3179], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3179], ["room_id", 2672], ["created_at", "2018-12-04 03:35:05.449688"], ["updated_at", "2018-12-04 03:35:05.449688"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$E0.4.vN9HbGj0j9AJVHc3.c0WziameQe8WN9TXF/WvD2Xl0pK30g."], ["created_at", "2018-12-04 03:35:05.463202"], ["updated_at", "2018-12-04 03:35:05.463202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:05.467589"], ["updated_at", "2018-12-04 03:35:05.467589"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:35:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:05.472972"], ["last_sign_in_at", "2018-12-04 03:35:05.472972"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:05.474026"], ["id", 3180]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2673", "user_id"=>"3180"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2673], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3180], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3180], ["room_id", 2673], ["created_at", "2018-12-04 03:35:05.486432"], ["updated_at", "2018-12-04 03:35:05.486432"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:35:05 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2673", "user_id"=>"3180"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3180], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2673], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3180], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3180], ["room_id", 2673], ["created_at", "2018-12-04 03:35:05.503196"], ["updated_at", "2018-12-04 03:35:05.503196"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$EsxBtjxwKnwiAk0SxTXNMu8k7a8AM93Eu6At2ruPG8bodpN6ZmHVO"], ["created_at", "2018-12-04 03:35:05.516677"], ["updated_at", "2018-12-04 03:35:05.516677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:05.521073"], ["updated_at", "2018-12-04 03:35:05.521073"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:35:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:05.526558"], ["last_sign_in_at", "2018-12-04 03:35:05.526558"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:05.527676"], ["id", 3181]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2674", "user_id"=>"3181"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2674], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3181], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3181], ["room_id", 2674], ["created_at", "2018-12-04 03:35:05.538647"], ["updated_at", "2018-12-04 03:35:05.538647"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.4ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:35:05 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2674", "user_id"=>"3181"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3181], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2674], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3181], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3181], ["room_id", 2674], ["created_at", "2018-12-04 03:35:05.554670"], ["updated_at", "2018-12-04 03:35:05.554670"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.5ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2674], ["user_id", 3181], ["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1Xh7WYXXjbxdrR4slb8tL.VKOVYcL1E6n56kYeA1QmCXUkk0NA4QG"], ["created_at", "2018-12-04 03:35:05.569868"], ["updated_at", "2018-12-04 03:35:05.569868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:05.574490"], ["updated_at", "2018-12-04 03:35:05.574490"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:35:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:05.580439"], ["last_sign_in_at", "2018-12-04 03:35:05.580439"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:05.581507"], ["id", 3182]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2675", "user_id"=>"3182"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2675], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3182], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3182], ["room_id", 2675], ["created_at", "2018-12-04 03:35:05.593353"], ["updated_at", "2018-12-04 03:35:05.593353"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:35:05 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2675", "user_id"=>"3182"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3182], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2675], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3182], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3182], ["room_id", 2675], ["created_at", "2018-12-04 03:35:05.609713"], ["updated_at", "2018-12-04 03:35:05.609713"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.4ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2675], ["user_id", 3182], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$87Tyn4.eVwLvDKB89CwWfeCDYVuep8975oNov3E6m4pAbJkeoYYVq"], ["created_at", "2018-12-04 03:35:05.624176"], ["updated_at", "2018-12-04 03:35:05.624176"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:05.628581"], ["updated_at", "2018-12-04 03:35:05.628581"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:35:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:05.633591"], ["last_sign_in_at", "2018-12-04 03:35:05.633591"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:05.634780"], ["id", 3183]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2676"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2676], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oNSqbRJ92IfamTLLht6mGe.L6U5rUNefqLRL23h0TS1sWYlGw9uq."], ["created_at", "2018-12-04 03:35:05.652278"], ["updated_at", "2018-12-04 03:35:05.652278"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:05.656900"], ["updated_at", "2018-12-04 03:35:05.656900"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:35:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:05.661722"], ["last_sign_in_at", "2018-12-04 03:35:05.661722"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:05.662788"], ["id", 3184]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2677"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qVs3qL8G.o0M6jd6KF7/I.z8fOBi0Ztphn9oG6D7i9iWmHprFnKh."], ["created_at", "2018-12-04 03:35:05.679734"], ["updated_at", "2018-12-04 03:35:05.679734"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:05.683949"], ["updated_at", "2018-12-04 03:35:05.683949"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2678], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3185], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3185], ["room_id", 2678], ["created_at", "2018-12-04 03:35:05.691875"], ["updated_at", "2018-12-04 03:35:05.691875"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2678” for 127.0.0.1 at 2018-12-04 01:35:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:05.696160"], ["last_sign_in_at", "2018-12-04 03:35:05.696160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:05.697248"], ["id", 3185]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2678"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2678], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2678')
Rendered appointments/show.html.erb within layouts/application (13.3ms)
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 219ms (Views: 214.5ms | ActiveRecord: 1.3ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nDx84ShJoEx4i3b9wdTI3.3e4KRZJe4sqoP9XTCkfpYsvYDpkDTIG"], ["created_at", "2018-12-04 03:35:05.930392"], ["updated_at", "2018-12-04 03:35:05.930392"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:05.934467"], ["updated_at", "2018-12-04 03:35:05.934467"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2679], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3186], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3186], ["room_id", 2679], ["created_at", "2018-12-04 03:35:05.943047"], ["updated_at", "2018-12-04 03:35:05.943047"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2621/edit” for 127.0.0.1 at 2018-12-04 01:35:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:05.947421"], ["last_sign_in_at", "2018-12-04 03:35:05.947421"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:05.948444"], ["id", 3186]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2621"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2621], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wWSyBiX0w1zYNEzfnlDUEO4oNh2oQhD3ubOZpK8jEYz18JvdIoboi"], ["created_at", "2018-12-04 03:35:05.973991"], ["updated_at", "2018-12-04 03:35:05.973991"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-04 01:35:05 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:05.978033"], ["last_sign_in_at", "2018-12-04 03:35:05.978033"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:05.978951"], ["id", 3187]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/w2C9OEv7iztdO0OQPSiXOzlktqDygPKqfA2T5t25iV0m81NlSdv2"], ["created_at", "2018-12-04 03:35:06.003361"], ["updated_at", "2018-12-04 03:35:06.003361"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.007438"], ["updated_at", "2018-12-04 03:35:06.007438"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2680], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3188], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3188], ["room_id", 2680], ["created_at", "2018-12-04 03:35:06.015920"], ["updated_at", "2018-12-04 03:35:06.015920"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2680], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3188], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3188], ["room_id", 2680], ["created_at", "2018-12-04 03:35:06.024544"], ["updated_at", "2018-12-04 03:35:06.024544"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.028813"], ["last_sign_in_at", "2018-12-04 03:35:06.028813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.029865"], ["id", 3188]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3188]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.3ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 18ms (Views: 9.0ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$63a3e.Su11LcLoUEh0HXIeUdFMO.9mpTJ1K9C/x0Q49KP..el78Jy"], ["created_at", "2018-12-04 03:35:06.062166"], ["updated_at", "2018-12-04 03:35:06.062166"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.066361"], ["updated_at", "2018-12-04 03:35:06.066361"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2681], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3189], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3189], ["room_id", 2681], ["created_at", "2018-12-04 03:35:06.073948"], ["updated_at", "2018-12-04 03:35:06.073948"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2681], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3189], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3189], ["room_id", 2681], ["created_at", "2018-12-04 03:35:06.081603"], ["updated_at", "2018-12-04 03:35:06.081603"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.085665"], ["last_sign_in_at", "2018-12-04 03:35:06.085665"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.086553"], ["id", 3189]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3189]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cTKitwXWKLwPFVqRGL94FOweJwZ9KZ5fUcuBqxnsxw0vsUKm4g4vS"], ["created_at", "2018-12-04 03:35:06.107680"], ["updated_at", "2018-12-04 03:35:06.107680"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.111409"], ["updated_at", "2018-12-04 03:35:06.111409"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2682], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3190], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3190], ["room_id", 2682], ["created_at", "2018-12-04 03:35:06.118802"], ["updated_at", "2018-12-04 03:35:06.118802"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2626” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.122831"], ["last_sign_in_at", "2018-12-04 03:35:06.122831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.123751"], ["id", 3190]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2626"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2626], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2626]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AuCPVFeh7A7AgJEdh1XRSO0q.6fuyrstxs.6lAjxs3YsEc0zOh5O."], ["created_at", "2018-12-04 03:35:06.144332"], ["updated_at", "2018-12-04 03:35:06.144332"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.148628"], ["updated_at", "2018-12-04 03:35:06.148628"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GUE8BGb7WxPgtvHXelBXK.nixGq7O2X0cPsyavF1319IoNo7cr1te"], ["created_at", "2018-12-04 03:35:06.155723"], ["updated_at", "2018-12-04 03:35:06.155723"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2683], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3192], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3192], ["room_id", 2683], ["created_at", "2018-12-04 03:35:06.163515"], ["updated_at", "2018-12-04 03:35:06.163515"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2627” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.168325"], ["last_sign_in_at", "2018-12-04 03:35:06.168325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.169548"], ["id", 3191]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2627"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2627], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2683], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3192], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 10ms (ActiveRecord: 2.1ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GsOeA/np5zYAHBbcSXSR0epXut6QtO4H95opPKCBUMfS5iUO4AB7i"], ["created_at", "2018-12-04 03:35:06.197420"], ["updated_at", "2018-12-04 03:35:06.197420"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.201959"], ["updated_at", "2018-12-04 03:35:06.201959"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UgNokJA13jqmw/6pplPkketxnq1mq4M7kdvPWrkBOjXX3rRh4N5pK"], ["created_at", "2018-12-04 03:35:06.209361"], ["updated_at", "2018-12-04 03:35:06.209361"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2684], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3194], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3194], ["room_id", 2684], ["created_at", "2018-12-04 03:35:06.217778"], ["updated_at", "2018-12-04 03:35:06.217778"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2628” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.223019"], ["last_sign_in_at", "2018-12-04 03:35:06.223019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.224098"], ["id", 3193]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2628"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2628], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2684], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3194], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ikf5M9c5eEN4Lj0jNDiPteUtFHqjnrzRzfWFWm4GhhK7dHTguRCve"], ["created_at", "2018-12-04 03:35:06.246348"], ["updated_at", "2018-12-04 03:35:06.246348"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.251078"], ["updated_at", "2018-12-04 03:35:06.251078"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YjGArrWX9Dv788qo65e15.NZmErrXur44TGnZqD7BaTR2VVvSsO6G"], ["created_at", "2018-12-04 03:35:06.258583"], ["updated_at", "2018-12-04 03:35:06.258583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2685], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3196], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3196], ["room_id", 2685], ["created_at", "2018-12-04 03:35:06.269224"], ["updated_at", "2018-12-04 03:35:06.269224"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2629” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.275168"], ["last_sign_in_at", "2018-12-04 03:35:06.275168"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.276187"], ["id", 3195]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2629"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2629], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2685], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3196], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-04 03:35:06.287261"], ["id", 2629]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms Sent mail to 123@123.com (5.7ms) Date: Tue, 04 Dec 2018 01:35:06 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05f5ea4894d_3c2b6f4f14471a5@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f5ea47a8b_3c2b6f4f1447083";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f5ea47a8b_3c2b6f4f1447083 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05f5ea47a8b_3c2b6f4f1447083 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05f5ea47a8b_3c2b6f4f1447083–

Completed 302 Found in 20ms (ActiveRecord: 2.4ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IMwoFYj3sXmpk7xjH0norOaanGLAzd110MS9n3bFgq93qA4T3rudO"], ["created_at", "2018-12-04 03:35:06.312449"], ["updated_at", "2018-12-04 03:35:06.312449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.316861"], ["updated_at", "2018-12-04 03:35:06.316861"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XsVv9VBbB/AveXmIdo9wXuqM8AxDbqSKm5KpmYn6zPuam93ih.wIa"], ["created_at", "2018-12-04 03:35:06.324591"], ["updated_at", "2018-12-04 03:35:06.324591"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2686], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3198], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3198], ["room_id", 2686], ["created_at", "2018-12-04 03:35:06.335195"], ["updated_at", "2018-12-04 03:35:06.335195"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:35:06.340231"], ["id", 2630]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2686], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3198], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3198], ["room_id", 2686], ["created_at", "2018-12-04 03:35:06.349971"], ["updated_at", "2018-12-04 03:35:06.349971"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:35:06.354828"], ["id", 2631]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.358683"], ["last_sign_in_at", "2018-12-04 03:35:06.358683"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.359743"], ["id", 3197]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3198], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2686], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3198], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2686], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.9ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 18ms (Views: 13.0ms | ActiveRecord: 2.1ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$duDZVbpN9C6wvWwY1tUWKeiDqOIv5ZcEBlYSVAisCZzmiM1RyyZqO"], ["created_at", "2018-12-04 03:35:06.391289"], ["updated_at", "2018-12-04 03:35:06.391289"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.395896"], ["updated_at", "2018-12-04 03:35:06.395896"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yOhU1XCZrmSYhp78cepttOcT8M6TXHWntpFsJCxjtR1I4m07zpjpy"], ["created_at", "2018-12-04 03:35:06.403446"], ["updated_at", "2018-12-04 03:35:06.403446"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2687], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3200], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3200], ["room_id", 2687], ["created_at", "2018-12-04 03:35:06.411995"], ["updated_at", "2018-12-04 03:35:06.411995"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:35:06.416102"], ["id", 2632]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2687], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3200], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3200], ["room_id", 2687], ["created_at", "2018-12-04 03:35:06.423613"], ["updated_at", "2018-12-04 03:35:06.423613"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:35:06.427462"], ["id", 2633]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.431625"], ["last_sign_in_at", "2018-12-04 03:35:06.431625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.432746"], ["id", 3199]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3200], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2687], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3200], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2687], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.3ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 1.9ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$an5sXaSoLYzrPZdo3YxemeBauh9kDoafjhnQug.yzeyC.yu8pEona"], ["created_at", "2018-12-04 03:35:06.462643"], ["updated_at", "2018-12-04 03:35:06.462643"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.467069"], ["last_sign_in_at", "2018-12-04 03:35:06.467069"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.468211"], ["id", 3201]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (6.2ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2J3hJ4oCg8CwwfhcIaUeLuiyxz34zPUUWVlcN0emdafU1ImANE.xe"], ["created_at", "2018-12-04 03:35:06.498200"], ["updated_at", "2018-12-04 03:35:06.498200"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.502374"], ["last_sign_in_at", "2018-12-04 03:35:06.502374"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.503345"], ["id", 3202]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3YxtckgRjxrPmNewljpoM.8buqjNt5nfHES1DmjOaqiXBwdxXtsca"], ["created_at", "2018-12-04 03:35:06.518227"], ["updated_at", "2018-12-04 03:35:06.518227"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.522382"], ["last_sign_in_at", "2018-12-04 03:35:06.522382"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.523442"], ["id", 3203]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8zBf0id9GzQEvZ4lUuDByOF96XDWmTeF15ygIzbHnFD8K5UdAe6uG"], ["created_at", "2018-12-04 03:35:06.546245"], ["updated_at", "2018-12-04 03:35:06.546245"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.551028"], ["last_sign_in_at", "2018-12-04 03:35:06.551028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.552095"], ["id", 3204]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:35:06 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vNtTVe48jW25SUGBHbcEoeedhfwZgbuSJR5KqnVKHdjsA8FZI6aJm"], ["created_at", "2018-12-04 03:35:06.585395"], ["updated_at", "2018-12-04 03:35:06.585395"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.589812"], ["updated_at", "2018-12-04 03:35:06.589812"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2688” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.593944"], ["last_sign_in_at", "2018-12-04 03:35:06.593944"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.595096"], ["id", 3205]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2688"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2688], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CVhPYXB3eK2iEAP4VOo6oeBB32cVC3m/f8A.zrSNRBNcYzivgpg9e"], ["created_at", "2018-12-04 03:35:06.616780"], ["updated_at", "2018-12-04 03:35:06.616780"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.620896"], ["updated_at", "2018-12-04 03:35:06.620896"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2689” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.624845"], ["last_sign_in_at", "2018-12-04 03:35:06.624845"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.625897"], ["id", 3206]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2689"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2689], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.642604"], ["updated_at", "2018-12-04 03:35:06.642604"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2690” for 127.0.0.1 at 2018-12-04 01:35:06 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2690"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yzcZnd/KQXycaFg3HVzvJekXzj6rAissMNSDbhhFDHkEEE1ZTwpBC"], ["created_at", "2018-12-04 03:35:06.658618"], ["updated_at", "2018-12-04 03:35:06.658618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.663144"], ["updated_at", "2018-12-04 03:35:06.663144"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2691” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.667149"], ["last_sign_in_at", "2018-12-04 03:35:06.667149"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.668213"], ["id", 3207]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2691"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.689076"], ["updated_at", "2018-12-04 03:35:06.689076"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2692” for 127.0.0.1 at 2018-12-04 01:35:06 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2692"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$S9g7p3X1WAR2fkhSZc31VeyApcGErqWQiuLOeoxuQsloGENoKF2Ji"], ["created_at", "2018-12-04 03:35:06.704148"], ["updated_at", "2018-12-04 03:35:06.704148"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.708641"], ["updated_at", "2018-12-04 03:35:06.708641"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2693/edit” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.713284"], ["last_sign_in_at", "2018-12-04 03:35:06.713284"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.714282"], ["id", 3208]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2693"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2693], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1kZ01dwL1cJcnUmAWAKZ0OTDtvQ6i.fzN7iT.N3jf8NI93.yVrgcG"], ["created_at", "2018-12-04 03:35:06.738888"], ["updated_at", "2018-12-04 03:35:06.738888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.743420"], ["updated_at", "2018-12-04 03:35:06.743420"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2694/edit” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.747552"], ["last_sign_in_at", "2018-12-04 03:35:06.747552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.748591"], ["id", 3209]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2694"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2694], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.768293"], ["updated_at", "2018-12-04 03:35:06.768293"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2695” for 127.0.0.1 at 2018-12-04 01:35:06 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2695"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I9rAzIYDShiM3hBrsZa/o.yuWzMqo6ZmuzUFe1zSugy8VdQ0fGuTm"], ["created_at", "2018-12-04 03:35:06.784079"], ["updated_at", "2018-12-04 03:35:06.784079"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.789546"], ["last_sign_in_at", "2018-12-04 03:35:06.789546"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.790531"], ["id", 3210]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.797018"], ["updated_at", "2018-12-04 03:35:06.797018"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n.8E8Dd4aDQxw8Rnt0ONPuCFLirHbRRYQm6EQXxzgIMf37QxeCb/C"], ["created_at", "2018-12-04 03:35:06.812242"], ["updated_at", "2018-12-04 03:35:06.812242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.817669"], ["last_sign_in_at", "2018-12-04 03:35:06.817669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.818695"], ["id", 3211]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.825107"], ["updated_at", "2018-12-04 03:35:06.825107"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bbnDQkS8B88ZH9KpH9PLaeyNJCCvrCOKrQ5k//a8nbsDXKIxnxl1m"], ["created_at", "2018-12-04 03:35:06.837811"], ["updated_at", "2018-12-04 03:35:06.837811"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.843859"], ["last_sign_in_at", "2018-12-04 03:35:06.843859"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.844923"], ["id", 3212]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.5ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tovYsSXhwKZSNSf.yg3xW.Xf8raCkK/yOHhRlimWAOsj4x/oQvDNS"], ["created_at", "2018-12-04 03:35:06.863954"], ["updated_at", "2018-12-04 03:35:06.863954"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.869077"], ["last_sign_in_at", "2018-12-04 03:35:06.869077"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.870209"], ["id", 3213]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$avO7dGm0vL.tDC0vkj.b3uelO3J6ilXyXc4SzbG8t2Zpqbljc62qq"], ["created_at", "2018-12-04 03:35:06.888956"], ["updated_at", "2018-12-04 03:35:06.888956"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.894157"], ["last_sign_in_at", "2018-12-04 03:35:06.894157"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.895186"], ["id", 3214]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O9OSnznLLeJtYrTXHxZvuuLjJuM8cXad/Fit/nseocr8uiUcDB4Sy"], ["created_at", "2018-12-04 03:35:06.910660"], ["updated_at", "2018-12-04 03:35:06.910660"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.914959"], ["updated_at", "2018-12-04 03:35:06.914959"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2698” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.919872"], ["last_sign_in_at", "2018-12-04 03:35:06.919872"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.920927"], ["id", 3215]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2698"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2698], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:35:06.929192"], ["id", 2698]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2698 Completed 302 Found in 7ms (ActiveRecord: 1.8ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$s9TD7FWc7BW7AajlQSzy3Oa6PWg0Pm1FoZx0wNfrrUNwsN45nJ2AK"], ["created_at", "2018-12-04 03:35:06.943922"], ["updated_at", "2018-12-04 03:35:06.943922"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.948365"], ["updated_at", "2018-12-04 03:35:06.948365"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2699” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.953019"], ["last_sign_in_at", "2018-12-04 03:35:06.953019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.953966"], ["id", 3216]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2699"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2699], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:35:06.961846"], ["id", 2699]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2699 Completed 302 Found in 7ms (ActiveRecord: 1.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jOs/8orZxrz2wbu1UnCusOdQCqBSxQ1OE31Ql4wBiwKFznEfvi8.S"], ["created_at", "2018-12-04 03:35:06.976255"], ["updated_at", "2018-12-04 03:35:06.976255"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:06.980692"], ["updated_at", "2018-12-04 03:35:06.980692"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2700” for 127.0.0.1 at 2018-12-04 01:35:06 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:06.985263"], ["last_sign_in_at", "2018-12-04 03:35:06.985263"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:06.986312"], ["id", 3217]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2700"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2700], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 13ms (Views: 8.5ms | ActiveRecord: 1.1ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$w6oKe8lCu3uYzMDeK6OzM.UrOyMmbxwMeK6LZn4QY34MazM0sFwC6"], ["created_at", "2018-12-04 03:35:07.015572"], ["updated_at", "2018-12-04 03:35:07.015572"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:07.019953"], ["updated_at", "2018-12-04 03:35:07.019953"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2701” for 127.0.0.1 at 2018-12-04 01:35:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:07.024554"], ["last_sign_in_at", "2018-12-04 03:35:07.024554"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:07.025637"], ["id", 3218]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2701"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2701], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 13ms (Views: 7.9ms | ActiveRecord: 1.1ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ym.Dp4XEUoJI5kDmSgUyKOuxTuOA8v8v4gKVBQhLQPqbQc3ANG4SS"], ["created_at", "2018-12-04 03:35:07.052873"], ["updated_at", "2018-12-04 03:35:07.052873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:35:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:07.058062"], ["last_sign_in_at", "2018-12-04 03:35:07.058062"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:07.059117"], ["id", 3219]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OO5T7wCbneaQKutWLimHL.kMQug/yC.neBL7/J.7Gj1GFL33k4Tbu"], ["created_at", "2018-12-04 03:35:07.074347"], ["updated_at", "2018-12-04 03:35:07.074347"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:07.078798"], ["updated_at", "2018-12-04 03:35:07.078798"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2702” for 127.0.0.1 at 2018-12-04 01:35:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:07.082586"], ["last_sign_in_at", "2018-12-04 03:35:07.082586"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:07.083645"], ["id", 3220]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2702"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2702], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2702]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6IBvkUi9E4NH.b9DHFXTQeQZ2ko4eS4SP35pfIaROVG4l1rS4D9zu"], ["created_at", "2018-12-04 03:35:07.103494"], ["updated_at", "2018-12-04 03:35:07.103494"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:07.107858"], ["updated_at", "2018-12-04 03:35:07.107858"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2703” for 127.0.0.1 at 2018-12-04 01:35:07 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:07.111775"], ["last_sign_in_at", "2018-12-04 03:35:07.111775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:07.112655"], ["id", 3221]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2703"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2703], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2703]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$w2D.Uy195aUiM5yH0/.MzuaA94wDGusMNYBO53u1GGIBqn9pWBO02"], ["created_at", "2018-12-04 03:35:07.135342"], ["updated_at", "2018-12-04 03:35:07.135342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:07.139463"], ["updated_at", "2018-12-04 03:35:07.139463"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2704” for 127.0.0.1 at 2018-12-04 01:35:07 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:07.143166"], ["last_sign_in_at", "2018-12-04 03:35:07.143166"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:07.144098"], ["id", 3222]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2704"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Jgex.17lWNGp14qm1obza.c08Oc0f6VbA.gUTGHUsB3NoHCQoHZDS"], ["created_at", "2018-12-04 03:35:07.158445"], ["updated_at", "2018-12-04 03:35:07.158445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:07.162600"], ["updated_at", "2018-12-04 03:35:07.162600"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2705” for 127.0.0.1 at 2018-12-04 01:35:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:07.166388"], ["last_sign_in_at", "2018-12-04 03:35:07.166388"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:07.167396"], ["id", 3223]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2705"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gyelevDC9Bm028HEwbNV6eK69JemiYzPgfpVg9fja5un3hlH7GtY6"], ["created_at", "2018-12-04 03:35:07.181597"], ["updated_at", "2018-12-04 03:35:07.181597"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 01:35:07 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:07.185663"], ["last_sign_in_at", "2018-12-04 03:35:07.185663"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:07.186575"], ["id", 3224]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YlpDmYGmJLEfVYHQonojIOQdiRASs1jQ7/Mhef0VN65QgGxl8POHi"], ["created_at", "2018-12-04 03:35:07.210837"], ["updated_at", "2018-12-04 03:35:07.210837"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:07.215355"], ["updated_at", "2018-12-04 03:35:07.215355"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:07.220194"], ["updated_at", "2018-12-04 03:35:07.220194"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:07.224459"], ["updated_at", "2018-12-04 03:35:07.224459"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.8ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2706], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3225], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3225], ["room_id", 2706], ["created_at", "2018-12-04 03:35:07.242229"], ["updated_at", "2018-12-04 03:35:07.242229"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 01:35:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:07.248309"], ["last_sign_in_at", "2018-12-04 03:35:07.248309"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:07.249753"], ["id", 3225]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 21ms (Views: 7.8ms | ActiveRecord: 1.9ms)

Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$niOan.HAq0bTTECyEOWqTOUSDNEHAWSo3Tna0FA0PT6ozNN/dyAcK"], ["created_at", "2018-12-04 03:35:07.319445"], ["updated_at", "2018-12-04 03:35:07.319445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:07.324303"], ["updated_at", "2018-12-04 03:35:07.324303"], ["tipo_sala", "palestras"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:07.328421"], ["updated_at", "2018-12-04 03:35:07.328421"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:35:07.332209"], ["updated_at", "2018-12-04 03:35:07.332209"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2709], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3226], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3226], ["room_id", 2709], ["created_at", "2018-12-04 03:35:07.341041"], ["updated_at", "2018-12-04 03:35:07.341041"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 01:35:07 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:35:07.345654"], ["last_sign_in_at", "2018-12-04 03:35:07.345654"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:35:07.346709"], ["id", 3226]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jptoocoTWr2x1orINtkcN.Buqwq1NevOSUwA9s84wR0Pg9CEl/wZa"], ["created_at", "2018-12-04 03:36:33.789177"], ["updated_at", "2018-12-04 03:36:33.789177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ROCckAFzuVAJGWOOcHRHgeBmzFRwc2UkqLPLkbx1l8O3s0bQa99hG"], ["created_at", "2018-12-04 03:36:33.797269"], ["updated_at", "2018-12-04 03:36:33.797269"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:33.816613"], ["updated_at", "2018-12-04 03:36:33.816613"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2712], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3228], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3228], ["room_id", 2712], ["created_at", "2018-12-04 03:36:33.873540"], ["updated_at", "2018-12-04 03:36:33.873540"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2636"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2636], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2712], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3228], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.6ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.6ms)

UserMailer#status_notification: processed outbound mail in 351.4ms Sent mail to 123@123.com (14.7ms) Date: Tue, 04 Dec 2018 01:36:34 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05f6423ec54_3c9b95cf188275f@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f6423cb1d_3c9b95cf188261e";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f6423cb1d_3c9b95cf188261e Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05f6423cb1d_3c9b95cf188261e Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05f6423cb1d_3c9b95cf188261e–

Completed 302 Found in 378ms (ActiveRecord: 2.4ms)

 (0.7ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PfD0hs9D7I5TIxfP6I.Kz.fVbwrVqg/RYLrvSiQ3ksi9Py14nPLxa"], ["created_at", "2018-12-04 03:36:34.278605"], ["updated_at", "2018-12-04 03:36:34.278605"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VX.4UMD.HpNuWyjvr6CFcuO/EdrOOfY03baJW0by91Z6Z0/0B78xS"], ["created_at", "2018-12-04 03:36:34.287366"], ["updated_at", "2018-12-04 03:36:34.287366"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:34.291316"], ["updated_at", "2018-12-04 03:36:34.291316"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2713], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3230], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3230], ["room_id", 2713], ["created_at", "2018-12-04 03:36:34.299833"], ["updated_at", "2018-12-04 03:36:34.299833"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2637"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2637], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2713], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3230], ["LIMIT", 1]]
SQL (0.5ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-04 03:36:34.311549"], ["id", 2637]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms Sent mail to 123@123.com (5.9ms) Date: Tue, 04 Dec 2018 01:36:34 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05f6424e944_3c9b95cf1882975@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f6424d980_3c9b95cf188288c";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f6424d980_3c9b95cf188288c Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05f6424d980_3c9b95cf188288c Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05f6424d980_3c9b95cf188288c–

Completed 302 Found in 21ms (ActiveRecord: 2.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5tSV0eonhetnbNZP7GIVd.g42BsjUq2drA3Q1Nb76AJCnD5zTk.2."], ["created_at", "2018-12-04 03:36:34.338005"], ["updated_at", "2018-12-04 03:36:34.338005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3npJ.DMOdJxTp0tT4izQF.UQ2A/3MrnKPMfnWahBGEK5eLTSrpEwC"], ["created_at", "2018-12-04 03:36:34.346591"], ["updated_at", "2018-12-04 03:36:34.346591"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:34.350989"], ["updated_at", "2018-12-04 03:36:34.350989"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2714], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3232], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3232], ["room_id", 2714], ["created_at", "2018-12-04 03:36:34.359810"], ["updated_at", "2018-12-04 03:36:34.359810"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.0ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T8OZ9S20YjyKq9a7Xje4w.Tot8U.nh7wBQxVN/XfBR.E97yH62M1W"], ["created_at", "2018-12-04 03:36:34.374982"], ["updated_at", "2018-12-04 03:36:34.374982"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jmYn1uBDZjt1Btx/Kxkq0.oLPftsudcfQkQ5cH0tpG1YWykwvoR8m"], ["created_at", "2018-12-04 03:36:34.382118"], ["updated_at", "2018-12-04 03:36:34.382118"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:34.385579"], ["updated_at", "2018-12-04 03:36:34.385579"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2715], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3234], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3234], ["room_id", 2715], ["created_at", "2018-12-04 03:36:34.393287"], ["updated_at", "2018-12-04 03:36:34.393287"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2639], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$4SqbTMJBIe11KrZ2.S0cHu5UHZODpa5OVXx8N/a2b7Q4Ouif..3d2"], ["created_at", "2018-12-04 03:36:34.408141"], ["updated_at", "2018-12-04 03:36:34.408141"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3235"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "3YiUtUI6WEgDmV294jD4Sg"], ["updated_at", "2018-12-04 03:36:34.415532"], ["id", 3235]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (376.7ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-04 03:36:34.419582"], ["reset_sent_at", "2018-12-04 03:36:34.418607"], ["id", 3235]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.9ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)

UserMailer#password_reset: processed outbound mail in 8.9ms Sent mail to teste@unb.com.br (5.6ms) Date: Tue, 04 Dec 2018 01:36:34 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c05f642c5bb1_3c9b95cf18832f5@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f642c4d65_3c9b95cf1883138";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f642c4d65_3c9b95cf1883138 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/3YiUtUI6WEgDmV294jD4Sg/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c05f642c4d65_3c9b95cf1883138 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/3YiUtUI6WEgDmV294jD4Sg/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c05f642c4d65_3c9b95cf1883138–

Redirected to test.host/login Completed 302 Found in 402ms (ActiveRecord: 378.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$Cu3K1fi9caTafYY/kL4tKurzHTbiPWUqOVUM9Rer17YTP50iQGCEu"], ["created_at", "2018-12-04 03:36:34.827050"], ["updated_at", "2018-12-04 03:36:34.827050"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$vA3I75Z2RZrdGWA7k828xedWZyRu7LzW9ir0ELZxSaZWeo19L9FFe"], ["created_at", "2018-12-04 03:36:34.846095"], ["updated_at", "2018-12-04 03:36:34.846095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3237"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$efsKJg0qfdQgiVC2kTeL7.5psrOUu7dYhP5XKt32TVoAoo7sbf9Au"], ["updated_at", "2018-12-04 03:36:34.856139"], ["id", 3237]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 2.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$vEFSQPiKWoU6PNADowl/9ufipj78AbXGRqkuigL4F1jP2x8LiR9WG"], ["created_at", "2018-12-04 03:36:34.868940"], ["updated_at", "2018-12-04 03:36:34.868940"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3238"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$tYsLeqgMaEg/Xq7c9zUyQuHVBpmHTiqtBG9aAU/lxH/fLpanaRLU6"], ["created_at", "2018-12-04 03:36:34.889221"], ["updated_at", "2018-12-04 03:36:34.889221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3239"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 20ms (Views: 2.0ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$TTwBOITyQ2hCc7vWazryou9LLFW3sncYqwpSNCM7raW7T2u6z46MW"], ["created_at", "2018-12-04 03:36:34.921935"], ["updated_at", "2018-12-04 03:36:34.921935"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3240"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$oxwKUsUy6VDVZzf5X4qJtOXZv.YpEgBFFeCcEfiOI4nKFH3JKO8Ua"], ["created_at", "2018-12-04 03:36:34.942939"], ["updated_at", "2018-12-04 03:36:34.942939"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3241"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DeSTIrOhFrvL1XSiY3cMZeRvTKHj4GVLT4UkcF2PKthuTyOsdm.D2"], ["created_at", "2018-12-04 03:36:34.960660"], ["updated_at", "2018-12-04 03:36:34.960660"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.7ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ogPyDpyhtbEiwzTfT8Dkuex5zTvkW.Cb9O1FUX9w3tXs/SIDh969S"], ["created_at", "2018-12-04 03:36:34.977201"], ["updated_at", "2018-12-04 03:36:34.977201"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.6ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oIEYJD.m3iSOGQf221gm0uFeMDQHNBJ3Jmmz7Aani.NufbayTFsoC"], ["created_at", "2018-12-04 03:36:34.994366"], ["updated_at", "2018-12-04 03:36:34.994366"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:34.998228"], ["updated_at", "2018-12-04 03:36:34.998228"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2716], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3244], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3244], ["room_id", 2716], ["created_at", "2018-12-04 03:36:35.005614"], ["updated_at", "2018-12-04 03:36:35.005614"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1uGmFXCgu9bZcvdSInRMtuwqANHAW15L1R9PS4T/8m5jiBEQ7UQ0S"], ["created_at", "2018-12-04 03:36:35.021593"], ["updated_at", "2018-12-04 03:36:35.021593"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.025522"], ["updated_at", "2018-12-04 03:36:35.025522"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2717], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3245], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3245], ["room_id", 2717], ["created_at", "2018-12-04 03:36:35.032590"], ["updated_at", "2018-12-04 03:36:35.032590"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mRzYZhngw3IcXVnS5I.rle6eLm.0rGtox7K9XGh9O4LykA9baUN8G"], ["created_at", "2018-12-04 03:36:35.084535"], ["updated_at", "2018-12-04 03:36:35.084535"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.088093"], ["updated_at", "2018-12-04 03:36:35.088093"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.100143"], ["last_sign_in_at", "2018-12-04 03:36:35.100143"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.101318"], ["id", 3246]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2718"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2718], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3246], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3246], ["room_id", 2718], ["created_at", "2018-12-04 03:36:35.120034"], ["updated_at", "2018-12-04 03:36:35.120034"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.3ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2718], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Bn.Me.G56I4l07fnjxjKPuCuL5DIF5vF2bTNBzB6HFz64SFUKVCjK"], ["created_at", "2018-12-04 03:36:35.135220"], ["updated_at", "2018-12-04 03:36:35.135220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.139308"], ["updated_at", "2018-12-04 03:36:35.139308"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.143945"], ["last_sign_in_at", "2018-12-04 03:36:35.143945"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.144946"], ["id", 3247]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2719"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2719], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3247], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3247], ["room_id", 2719], ["created_at", "2018-12-04 03:36:35.155723"], ["updated_at", "2018-12-04 03:36:35.155723"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 2.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sAUE1L8QZoV.ovAaZ70dsuRDnHDXK.4FO9vI6yEK9qAo1QyCQZ5LG"], ["created_at", "2018-12-04 03:36:35.168255"], ["updated_at", "2018-12-04 03:36:35.168255"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.172242"], ["updated_at", "2018-12-04 03:36:35.172242"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.177448"], ["last_sign_in_at", "2018-12-04 03:36:35.177448"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.178503"], ["id", 3248]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2720", "user_id"=>"3248"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2720], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3248], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3248], ["room_id", 2720], ["created_at", "2018-12-04 03:36:35.189381"], ["updated_at", "2018-12-04 03:36:35.189381"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 2.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:36:35 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2720", "user_id"=>"3248"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3248], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2720], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3248], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3248], ["room_id", 2720], ["created_at", "2018-12-04 03:36:35.205261"], ["updated_at", "2018-12-04 03:36:35.205261"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zNiA8Dm2vVvN7JjSpvP70Ot8VOlCt6igwWIXvZQhBJ7lcU5M5UIaG"], ["created_at", "2018-12-04 03:36:35.216855"], ["updated_at", "2018-12-04 03:36:35.216855"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.220772"], ["updated_at", "2018-12-04 03:36:35.220772"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.226237"], ["last_sign_in_at", "2018-12-04 03:36:35.226237"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.227307"], ["id", 3249]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2721", "user_id"=>"3249"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2721], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3249], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3249], ["room_id", 2721], ["created_at", "2018-12-04 03:36:35.237860"], ["updated_at", "2018-12-04 03:36:35.237860"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:36:35 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2721", "user_id"=>"3249"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3249], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2721], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3249], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3249], ["room_id", 2721], ["created_at", "2018-12-04 03:36:35.253253"], ["updated_at", "2018-12-04 03:36:35.253253"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.8ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2721], ["user_id", 3249], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FI/STo9Kr7eKeKUuTnm9ueoyp2D.OlMwgH/lNEaEmWRYLt5zFrysu"], ["created_at", "2018-12-04 03:36:35.267204"], ["updated_at", "2018-12-04 03:36:35.267204"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.271823"], ["updated_at", "2018-12-04 03:36:35.271823"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.278716"], ["last_sign_in_at", "2018-12-04 03:36:35.278716"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.280140"], ["id", 3250]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2722", "user_id"=>"3250"}
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2722], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3250], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3250], ["room_id", 2722], ["created_at", "2018-12-04 03:36:35.292416"], ["updated_at", "2018-12-04 03:36:35.292416"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.7ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:36:35 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2722", "user_id"=>"3250"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3250], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2722], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3250], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3250], ["room_id", 2722], ["created_at", "2018-12-04 03:36:35.308501"], ["updated_at", "2018-12-04 03:36:35.308501"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2722], ["user_id", 3250], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$C7GmS/KEIB7uwz5g6XHSueTDp.U5QblY4EOE3ADAmSTf.zwOnNXGm"], ["created_at", "2018-12-04 03:36:35.326094"], ["updated_at", "2018-12-04 03:36:35.326094"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.331577"], ["updated_at", "2018-12-04 03:36:35.331577"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.336428"], ["last_sign_in_at", "2018-12-04 03:36:35.336428"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.337558"], ["id", 3251]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2723"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2723], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JguBfjHbh2ANSYjZc/jnbekRoszcY1.bWlwF9dqjGWtb6uREZeFPq"], ["created_at", "2018-12-04 03:36:35.356399"], ["updated_at", "2018-12-04 03:36:35.356399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.360819"], ["updated_at", "2018-12-04 03:36:35.360819"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.365632"], ["last_sign_in_at", "2018-12-04 03:36:35.365632"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.366686"], ["id", 3252]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2724"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7q4rLAkMwxb0lmEbz5gugOtdNr7lx3SEWhAKtzVEKhe230cSVf5wa"], ["created_at", "2018-12-04 03:36:35.384167"], ["updated_at", "2018-12-04 03:36:35.384167"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.388538"], ["updated_at", "2018-12-04 03:36:35.388538"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2725], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3253], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3253], ["room_id", 2725], ["created_at", "2018-12-04 03:36:35.396446"], ["updated_at", "2018-12-04 03:36:35.396446"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2725” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.400853"], ["last_sign_in_at", "2018-12-04 03:36:35.400853"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.401943"], ["id", 3253]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2725"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2725], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2725')
Rendered appointments/show.html.erb within layouts/application (13.0ms)
Rendered layouts/_header-user.html.erb (2.8ms)

Completed 200 OK in 215ms (Views: 210.8ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TpRkRrwWaf3SxirZLWg4Bu1L7elqTfc04hpEmYytvh.DW.GJmLukq"], ["created_at", "2018-12-04 03:36:35.632607"], ["updated_at", "2018-12-04 03:36:35.632607"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.637350"], ["updated_at", "2018-12-04 03:36:35.637350"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2726], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3254], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3254], ["room_id", 2726], ["created_at", "2018-12-04 03:36:35.646188"], ["updated_at", "2018-12-04 03:36:35.646188"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2651/edit” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.651323"], ["last_sign_in_at", "2018-12-04 03:36:35.651323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.652292"], ["id", 3254]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2651"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2651], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ra.DlXBlXQwo.ug1Wo8XEuI3ViZCrQCMUYSRD.xA.spyO48HVDrqm"], ["created_at", "2018-12-04 03:36:35.681363"], ["updated_at", "2018-12-04 03:36:35.681363"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.686239"], ["last_sign_in_at", "2018-12-04 03:36:35.686239"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.687446"], ["id", 3255]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0//j21Bk7fw4u8FxxHnFluHi8qiOcEnJGaqXm.M0wDwDmnvETix0."], ["created_at", "2018-12-04 03:36:35.713341"], ["updated_at", "2018-12-04 03:36:35.713341"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.717736"], ["updated_at", "2018-12-04 03:36:35.717736"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2727], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3256], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3256], ["room_id", 2727], ["created_at", "2018-12-04 03:36:35.726191"], ["updated_at", "2018-12-04 03:36:35.726191"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2727], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3256], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3256], ["room_id", 2727], ["created_at", "2018-12-04 03:36:35.734603"], ["updated_at", "2018-12-04 03:36:35.734603"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.739300"], ["last_sign_in_at", "2018-12-04 03:36:35.739300"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.740327"], ["id", 3256]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3256]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.0ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 21ms (Views: 10.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eIzwyddEaB7/9Mg3UdEvauwNCiA2LjcEiOe4BXpiMmdnLtz23TdkO"], ["created_at", "2018-12-04 03:36:35.777125"], ["updated_at", "2018-12-04 03:36:35.777125"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.781946"], ["updated_at", "2018-12-04 03:36:35.781946"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2728], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3257], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3257], ["room_id", 2728], ["created_at", "2018-12-04 03:36:35.791416"], ["updated_at", "2018-12-04 03:36:35.791416"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2728], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3257], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3257], ["room_id", 2728], ["created_at", "2018-12-04 03:36:35.801241"], ["updated_at", "2018-12-04 03:36:35.801241"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.806104"], ["last_sign_in_at", "2018-12-04 03:36:35.806104"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.807806"], ["id", 3257]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3257]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eud08zLLgEriS3JUNaoo7e4xGhPJr4bHne4aKqdrrQo1mdI7pZMpe"], ["created_at", "2018-12-04 03:36:35.834979"], ["updated_at", "2018-12-04 03:36:35.834979"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.839727"], ["updated_at", "2018-12-04 03:36:35.839727"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2729], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3258], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3258], ["room_id", 2729], ["created_at", "2018-12-04 03:36:35.848593"], ["updated_at", "2018-12-04 03:36:35.848593"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2656” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.853165"], ["last_sign_in_at", "2018-12-04 03:36:35.853165"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.854478"], ["id", 3258]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2656"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2656], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2656]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sULq5hpvpAAZoo8xddvJy.oXkGtBWbjvpG0lhx/s7OxRv5ywRGCCa"], ["created_at", "2018-12-04 03:36:35.878445"], ["updated_at", "2018-12-04 03:36:35.878445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.883009"], ["updated_at", "2018-12-04 03:36:35.883009"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qslIpdIkh8x/a/EtojlDj.4YaEssimPMSuITFdIqWqVGBeeRbMKlu"], ["created_at", "2018-12-04 03:36:35.890849"], ["updated_at", "2018-12-04 03:36:35.890849"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2730], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3260], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3260], ["room_id", 2730], ["created_at", "2018-12-04 03:36:35.899182"], ["updated_at", "2018-12-04 03:36:35.899182"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2657” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.904352"], ["last_sign_in_at", "2018-12-04 03:36:35.904352"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.905392"], ["id", 3259]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2657"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2657], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2730], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3260], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.5ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wvX6h5EIQ4yQGTZV.z6.b.w0WPRRGf8GF1gKyGNnBEPcFrysjgyeK"], ["created_at", "2018-12-04 03:36:35.929850"], ["updated_at", "2018-12-04 03:36:35.929850"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.934035"], ["updated_at", "2018-12-04 03:36:35.934035"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.r3nl8zB/J79LsN4jAUkS.bvtzJ.GjYeFvW6QaRdtredsnz0iRHFK"], ["created_at", "2018-12-04 03:36:35.941835"], ["updated_at", "2018-12-04 03:36:35.941835"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2731], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3262], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3262], ["room_id", 2731], ["created_at", "2018-12-04 03:36:35.950156"], ["updated_at", "2018-12-04 03:36:35.950156"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2658” for 127.0.0.1 at 2018-12-04 01:36:35 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:35.955156"], ["last_sign_in_at", "2018-12-04 03:36:35.955156"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:35.956145"], ["id", 3261]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2658"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2658], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2731], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3262], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 11ms (ActiveRecord: 1.9ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m6WcLLzu792HZJQvB6RuHe.k8uD6OYIn20bzU9IK3eYf.Cqly1aJi"], ["created_at", "2018-12-04 03:36:35.983299"], ["updated_at", "2018-12-04 03:36:35.983299"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:35.988197"], ["updated_at", "2018-12-04 03:36:35.988197"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LWK0TuC6roaoGWuDjv0MRO/.bHraGQm41y7Bet5sGNM4GXTbWwX7S"], ["created_at", "2018-12-04 03:36:35.996231"], ["updated_at", "2018-12-04 03:36:35.996231"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2732], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3264], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3264], ["room_id", 2732], ["created_at", "2018-12-04 03:36:36.005568"], ["updated_at", "2018-12-04 03:36:36.005568"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2659” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.012531"], ["last_sign_in_at", "2018-12-04 03:36:36.012531"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.013945"], ["id", 3263]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2659"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2659], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2732], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3264], ["LIMIT", 1]]
SQL (0.8ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-04 03:36:36.027748"], ["id", 2659]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms Sent mail to 123@123.com (6.1ms) Date: Tue, 04 Dec 2018 01:36:36 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c05f6449554_3c9b95cf18839f4@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c05f6448618_3c9b95cf1883841";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c05f6448618_3c9b95cf1883841 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c05f6448618_3c9b95cf1883841 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c05f6448618_3c9b95cf1883841–

Completed 302 Found in 23ms (ActiveRecord: 2.5ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SC71hF53ayOGthO6TfJm.u1FjXK6.dt7b7jCpjDu7z0ZcHQOhcZ1e"], ["created_at", "2018-12-04 03:36:36.057717"], ["updated_at", "2018-12-04 03:36:36.057717"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.063182"], ["updated_at", "2018-12-04 03:36:36.063182"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$z2fc0LKIx.V1Jb12k3GBPeRCeyMhG2mOmxn6e4QR/c3zaxRZjIg6."], ["created_at", "2018-12-04 03:36:36.071285"], ["updated_at", "2018-12-04 03:36:36.071285"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2733], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3266], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3266], ["room_id", 2733], ["created_at", "2018-12-04 03:36:36.080156"], ["updated_at", "2018-12-04 03:36:36.080156"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:36:36.084200"], ["id", 2660]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2733], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3266], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3266], ["room_id", 2733], ["created_at", "2018-12-04 03:36:36.094259"], ["updated_at", "2018-12-04 03:36:36.094259"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:36:36.099861"], ["id", 2661]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.104915"], ["last_sign_in_at", "2018-12-04 03:36:36.104915"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.106269"], ["id", 3265]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3266], ["LIMIT", 1]]
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2733], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3266], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2733], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (12.8ms)
Rendered layouts/_header-admin.html.erb (3.2ms)

Completed 200 OK in 24ms (Views: 18.6ms | ActiveRecord: 2.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o46EOQInhkWY3gC/8ktIieQySSKsKWPu90DtNPxkuxR1MntFkCIxy"], ["created_at", "2018-12-04 03:36:36.146799"], ["updated_at", "2018-12-04 03:36:36.146799"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.151402"], ["updated_at", "2018-12-04 03:36:36.151402"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cFvH6ep6Ru/vBws22Z3iv.AcsDleKnUG9xFWmO6Nv5wnlfbRKLwMu"], ["created_at", "2018-12-04 03:36:36.159888"], ["updated_at", "2018-12-04 03:36:36.159888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2734], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3268], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3268], ["room_id", 2734], ["created_at", "2018-12-04 03:36:36.170004"], ["updated_at", "2018-12-04 03:36:36.170004"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-04 03:36:36.174209"], ["id", 2662]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2734], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3268], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3268], ["room_id", 2734], ["created_at", "2018-12-04 03:36:36.184264"], ["updated_at", "2018-12-04 03:36:36.184264"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-04 03:36:36.188396"], ["id", 2663]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.192773"], ["last_sign_in_at", "2018-12-04 03:36:36.192773"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.193982"], ["id", 3267]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3268], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2734], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3268], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2734], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.9ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 16ms (Views: 11.7ms | ActiveRecord: 1.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$R6ZFgOP3LTeOe0VYdoEPG.D74SwP/eIa7yqsr9Lx9nfmRFz6FYOAa"], ["created_at", "2018-12-04 03:36:36.228360"], ["updated_at", "2018-12-04 03:36:36.228360"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.7ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.233563"], ["last_sign_in_at", "2018-12-04 03:36:36.233563"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.234634"], ["id", 3269]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (6.8ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 15ms (Views: 13.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WPNKyrZ5GTeYsLBmpEGrw.CcDqTNR8FNxEV5rcHj9dXE8VykedJo."], ["created_at", "2018-12-04 03:36:36.267923"], ["updated_at", "2018-12-04 03:36:36.267923"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.272465"], ["last_sign_in_at", "2018-12-04 03:36:36.272465"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.273575"], ["id", 3270]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SJup32pOSvvG7KeehkjVuus6KDVZEdcGl3bNsiPfED.QPQNA96e3."], ["created_at", "2018-12-04 03:36:36.290501"], ["updated_at", "2018-12-04 03:36:36.290501"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.296647"], ["last_sign_in_at", "2018-12-04 03:36:36.296647"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.298060"], ["id", 3271]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BW1pDfkRWkF4QMDvvH//JODufAuuh9hDHIjcmEgcY2cMxoy88Iysq"], ["created_at", "2018-12-04 03:36:36.325438"], ["updated_at", "2018-12-04 03:36:36.325438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.329999"], ["last_sign_in_at", "2018-12-04 03:36:36.329999"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.331148"], ["id", 3272]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-04 01:36:36 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 6ms (ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jFQMzdxrEUKoUrrYGNuE8edDJjd0Eok2ebJ0rF8.zFQX2y/l.Ruje"], ["created_at", "2018-12-04 03:36:36.368574"], ["updated_at", "2018-12-04 03:36:36.368574"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.372958"], ["updated_at", "2018-12-04 03:36:36.372958"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2735” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.378057"], ["last_sign_in_at", "2018-12-04 03:36:36.378057"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.379155"], ["id", 3273]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2735"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2735], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iC/2iMELLWBgxh6QGoVB8.6cyYDLLQ8NblnWDoKqKOD7Li2eIFWQ2"], ["created_at", "2018-12-04 03:36:36.402024"], ["updated_at", "2018-12-04 03:36:36.402024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.407411"], ["updated_at", "2018-12-04 03:36:36.407411"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2736” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.411886"], ["last_sign_in_at", "2018-12-04 03:36:36.411886"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.413208"], ["id", 3274]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2736"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2736], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.431240"], ["updated_at", "2018-12-04 03:36:36.431240"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2737” for 127.0.0.1 at 2018-12-04 01:36:36 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2737"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sYqCDYSbpxriKOsvKbjMe..U1ITJInd6ZjgBJK96men8mWwv3kG5e"], ["created_at", "2018-12-04 03:36:36.446716"], ["updated_at", "2018-12-04 03:36:36.446716"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.451560"], ["updated_at", "2018-12-04 03:36:36.451560"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2738” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.456122"], ["last_sign_in_at", "2018-12-04 03:36:36.456122"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.457014"], ["id", 3275]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2738"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.477134"], ["updated_at", "2018-12-04 03:36:36.477134"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2739” for 127.0.0.1 at 2018-12-04 01:36:36 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2739"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PZOq7gFZX188HN/IRrjyLufmgU2hoHiSo.5KYUQAgLUcZH5sBPzsm"], ["created_at", "2018-12-04 03:36:36.491655"], ["updated_at", "2018-12-04 03:36:36.491655"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.495773"], ["updated_at", "2018-12-04 03:36:36.495773"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2740/edit” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.499500"], ["last_sign_in_at", "2018-12-04 03:36:36.499500"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.500368"], ["id", 3276]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2740"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2740], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wkzg7sN/KPjYzrnIjzYjS.jY911XlH3guEC4VXOjdyEwZSkQhHUSG"], ["created_at", "2018-12-04 03:36:36.524632"], ["updated_at", "2018-12-04 03:36:36.524632"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.528461"], ["updated_at", "2018-12-04 03:36:36.528461"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2741/edit” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.532101"], ["last_sign_in_at", "2018-12-04 03:36:36.532101"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.533019"], ["id", 3277]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2741"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2741], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.554156"], ["updated_at", "2018-12-04 03:36:36.554156"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2742” for 127.0.0.1 at 2018-12-04 01:36:36 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2742"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lzBpeo6cQKyibNGeqyIZGuqMkdQ0bLdCCFvQ263XMut1FEMws0syS"], ["created_at", "2018-12-04 03:36:36.570869"], ["updated_at", "2018-12-04 03:36:36.570869"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.579532"], ["last_sign_in_at", "2018-12-04 03:36:36.579532"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.580632"], ["id", 3278]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.590996"], ["updated_at", "2018-12-04 03:36:36.590996"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.4ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$io74u4rhtP.o8ebwRgzHgeLTJBGV1xfvu4YsoYvm24KeXnEv5ifOy"], ["created_at", "2018-12-04 03:36:36.609185"], ["updated_at", "2018-12-04 03:36:36.609185"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.615507"], ["last_sign_in_at", "2018-12-04 03:36:36.615507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.616699"], ["id", 3279]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.624041"], ["updated_at", "2018-12-04 03:36:36.624041"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ihjIL11yNsEWEDuRZkiOwOVUhk3ewV.yY.n10cIgeNVzJAkSBbI4O"], ["created_at", "2018-12-04 03:36:36.642045"], ["updated_at", "2018-12-04 03:36:36.642045"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.650082"], ["last_sign_in_at", "2018-12-04 03:36:36.650082"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.651325"], ["id", 3280]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 0.6ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u8uyhUA/xRHpHDj.InkJR.EJ2nxz//gpGyXZcLuFJ.5i1n90JpS5a"], ["created_at", "2018-12-04 03:36:36.675906"], ["updated_at", "2018-12-04 03:36:36.675906"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.683549"], ["last_sign_in_at", "2018-12-04 03:36:36.683549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.684973"], ["id", 3281]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.4ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W8st2AeqZeJXhr3I3Uivburu6dynob9OYGJBA5HcsUZ96PqJJ80Lm"], ["created_at", "2018-12-04 03:36:36.708374"], ["updated_at", "2018-12-04 03:36:36.708374"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.714553"], ["last_sign_in_at", "2018-12-04 03:36:36.714553"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.715690"], ["id", 3282]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4.ZGIepNYAn3CuneicyPKeVkiX40Qv/gnIY0qoYqcAnV11nd8ZZZW"], ["created_at", "2018-12-04 03:36:36.733382"], ["updated_at", "2018-12-04 03:36:36.733382"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.739374"], ["updated_at", "2018-12-04 03:36:36.739374"], ["tipo_sala", "palestras"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2745” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.747213"], ["last_sign_in_at", "2018-12-04 03:36:36.747213"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.748199"], ["id", 3283]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2745"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2745], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:36:36.757241"], ["id", 2745]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2745 Completed 302 Found in 9ms (ActiveRecord: 1.6ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.5ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QnjwhVN6EX6jNhoYA/5I..eClyvjI6ZNrmkEOSAvtTguwsKUOhZbe"], ["created_at", "2018-12-04 03:36:36.776540"], ["updated_at", "2018-12-04 03:36:36.776540"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.782956"], ["updated_at", "2018-12-04 03:36:36.782956"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2746” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.789099"], ["last_sign_in_at", "2018-12-04 03:36:36.789099"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.790309"], ["id", 3284]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2746"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2746], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-04 03:36:36.799808"], ["id", 2746]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2746 Completed 302 Found in 8ms (ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LsM6Ech/tflMEt8Pr60H5eBfS7x/hY1iRTgqQSvdU0ItXZW9Nt.Uy"], ["created_at", "2018-12-04 03:36:36.816762"], ["updated_at", "2018-12-04 03:36:36.816762"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.823152"], ["updated_at", "2018-12-04 03:36:36.823152"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2747” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.828351"], ["last_sign_in_at", "2018-12-04 03:36:36.828351"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.829284"], ["id", 3285]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2747"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2747], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 14ms (Views: 9.2ms | ActiveRecord: 0.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e2L2uYsLEmfITdVUmuwLWuYQPfhevSu7b.cWiMJZMVaCNTRAT8YjC"], ["created_at", "2018-12-04 03:36:36.858469"], ["updated_at", "2018-12-04 03:36:36.858469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.863043"], ["updated_at", "2018-12-04 03:36:36.863043"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2748” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.868536"], ["last_sign_in_at", "2018-12-04 03:36:36.868536"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.869526"], ["id", 3286]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2748"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2748], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 15ms (Views: 9.5ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DUd606swNrTHZtuytOsgEOwjSA8/vjGr8KJntCY0XQVBfwgKUZOYi"], ["created_at", "2018-12-04 03:36:36.898648"], ["updated_at", "2018-12-04 03:36:36.898648"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.904555"], ["last_sign_in_at", "2018-12-04 03:36:36.904555"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.905700"], ["id", 3287]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9m0j.TBiFSyW3o2OL2rquO.E/wUjhMVJmoAx3tc/.spDp4EeO9eMe"], ["created_at", "2018-12-04 03:36:36.922487"], ["updated_at", "2018-12-04 03:36:36.922487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.927678"], ["updated_at", "2018-12-04 03:36:36.927678"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2749” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.932543"], ["last_sign_in_at", "2018-12-04 03:36:36.932543"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.934034"], ["id", 3288]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2749"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2749], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2749]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Kd9ifa4fIg3WvFuZ.R9CcezDF1tquQWwFvfE.c8cioLANtJlJJEmq"], ["created_at", "2018-12-04 03:36:36.959533"], ["updated_at", "2018-12-04 03:36:36.959533"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:36.964218"], ["updated_at", "2018-12-04 03:36:36.964218"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2750” for 127.0.0.1 at 2018-12-04 01:36:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:36.968360"], ["last_sign_in_at", "2018-12-04 03:36:36.968360"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:36.969393"], ["id", 3289]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2750"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2750], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2750]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DQpo4LCkVC89f/EuCeV6yOWfVE72/CO3A3SpymkEX7zOFDV0wIzHa"], ["created_at", "2018-12-04 03:36:36.990336"], ["updated_at", "2018-12-04 03:36:36.990336"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:37.001405"], ["updated_at", "2018-12-04 03:36:37.001405"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2751” for 127.0.0.1 at 2018-12-04 01:36:37 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:37.005694"], ["last_sign_in_at", "2018-12-04 03:36:37.005694"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:37.007027"], ["id", 3290]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2751"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QEcn00EeNMrmOoMVdjcpn.1Nu7okt2agvXVPDnf8HnvAlU3L2R6K."], ["created_at", "2018-12-04 03:36:37.024131"], ["updated_at", "2018-12-04 03:36:37.024131"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:37.028782"], ["updated_at", "2018-12-04 03:36:37.028782"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2752” for 127.0.0.1 at 2018-12-04 01:36:37 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:37.032788"], ["last_sign_in_at", "2018-12-04 03:36:37.032788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:37.033781"], ["id", 3291]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2752"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zzrxxzqD0SwdYCUEYRAC9uSXKbOe7O0laKw5ncJ0mZE6tShkDZx1m"], ["created_at", "2018-12-04 03:36:37.050322"], ["updated_at", "2018-12-04 03:36:37.050322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-04 01:36:37 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:37.055237"], ["last_sign_in_at", "2018-12-04 03:36:37.055237"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:37.056295"], ["id", 3292]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QDkrXaLeHqpLGyNbhDweC.7zwOpNw22MokdBMTfCzGktu269DAsLe"], ["created_at", "2018-12-04 03:36:37.084699"], ["updated_at", "2018-12-04 03:36:37.084699"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:37.088673"], ["updated_at", "2018-12-04 03:36:37.088673"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:37.092128"], ["updated_at", "2018-12-04 03:36:37.092128"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:37.095771"], ["updated_at", "2018-12-04 03:36:37.095771"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2753], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3293], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3293], ["room_id", 2753], ["created_at", "2018-12-04 03:36:37.104568"], ["updated_at", "2018-12-04 03:36:37.104568"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-04 01:36:37 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:37.109465"], ["last_sign_in_at", "2018-12-04 03:36:37.109465"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:37.110528"], ["id", 3293]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 23ms (Views: 8.3ms | ActiveRecord: 1.8ms)

Room Load (0.8ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GQ3Cwo9c.B/z1cpVAwrZLeDdgSIBpSLqijfJM4CtSrhe4qI1tb7cm"], ["created_at", "2018-12-04 03:36:37.152628"], ["updated_at", "2018-12-04 03:36:37.152628"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:37.157622"], ["updated_at", "2018-12-04 03:36:37.157622"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:37.161640"], ["updated_at", "2018-12-04 03:36:37.161640"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-04 03:36:37.165287"], ["updated_at", "2018-12-04 03:36:37.165287"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2756], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3294], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3294], ["room_id", 2756], ["created_at", "2018-12-04 03:36:37.173951"], ["updated_at", "2018-12-04 03:36:37.173951"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-04 01:36:37 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-04 03:36:37.178674"], ["last_sign_in_at", "2018-12-04 03:36:37.178674"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-04 03:36:37.179927"], ["id", 3294]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (31.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (25.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (35.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2NMx0pLbYGbmoye6CAdyRuEn30CQEYZQTwNWFO8URsfBnYeJwgvmu"], ["created_at", "2018-12-05 16:31:13.578442"], ["updated_at", "2018-12-05 16:31:13.578442"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$URRCYNx2XFfE85o4kE24JOQooe97PnSmR1ytg8mkaUsuT.XnjNubu"], ["created_at", "2018-12-05 16:31:13.625318"], ["updated_at", "2018-12-05 16:31:13.625318"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (19.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:13.645099"], ["updated_at", "2018-12-05 16:31:13.645099"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2759], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3296], ["LIMIT", 1]]
SQL (73.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3296], ["room_id", 2759], ["created_at", "2018-12-05 16:31:13.730820"], ["updated_at", "2018-12-05 16:31:13.730820"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2666"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2666], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2759], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3296], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (11.4ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.6ms)

UserMailer#status_notification: processed outbound mail in 499.2ms Sent mail to 123@123.com (13.7ms) Date: Wed, 05 Dec 2018 14:31:14 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c07fd5275c35_10b6da0f20869b@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c07fd527359d_10b6da0f2086885";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c07fd527359d_10b6da0f2086885 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c07fd527359d_10b6da0f2086885 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c07fd527359d_10b6da0f2086885–

Completed 302 Found in 524ms (ActiveRecord: 2.3ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NBuEM.JONEfNdkTWQ4FJcOGNQe6LoDKUmBqy.1VcmgMan5WC6bxGC"], ["created_at", "2018-12-05 16:31:14.519495"], ["updated_at", "2018-12-05 16:31:14.519495"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VXJRxs4D0o/2P/knmdb.YelBuwMnU5yMn7ky6mM2yoIfOe6r1HCTu"], ["created_at", "2018-12-05 16:31:14.528229"], ["updated_at", "2018-12-05 16:31:14.528229"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:14.532481"], ["updated_at", "2018-12-05 16:31:14.532481"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2760], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3298], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3298], ["room_id", 2760], ["created_at", "2018-12-05 16:31:14.540755"], ["updated_at", "2018-12-05 16:31:14.540755"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2667"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2667], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2760], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3298], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-05 16:31:14.551501"], ["id", 2667]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms Sent mail to 123@123.com (6.0ms) Date: Wed, 05 Dec 2018 14:31:14 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c07fd5289099_10b6da0f2087155@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c07fd528820b_10b6da0f2087017";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c07fd528820b_10b6da0f2087017 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c07fd528820b_10b6da0f2087017 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c07fd528820b_10b6da0f2087017–

Completed 302 Found in 21ms (ActiveRecord: 2.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OIPAVuwYYadSr7ACOzURmunCghvyfD/pm.E4.Ofr0uImkJJ85hJXa"], ["created_at", "2018-12-05 16:31:14.575751"], ["updated_at", "2018-12-05 16:31:14.575751"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Xy/yv2dqOv6Xa1WbDY5U9./nSFVRd35YAokle5YDBFMKv.VP.GdfG"], ["created_at", "2018-12-05 16:31:14.583755"], ["updated_at", "2018-12-05 16:31:14.583755"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:14.587613"], ["updated_at", "2018-12-05 16:31:14.587613"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2761], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3300], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3300], ["room_id", 2761], ["created_at", "2018-12-05 16:31:14.595240"], ["updated_at", "2018-12-05 16:31:14.595240"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$szg1k20Ks/d6xjaMlNcqGuYdcA1GIVNfJAwTKySgc1mlkqexAXUQy"], ["created_at", "2018-12-05 16:31:14.611935"], ["updated_at", "2018-12-05 16:31:14.611935"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$EjWdpsENku6CODfLyaTaYO7pFL49ugVHvMBn462ukG/t2xndVCCVe"], ["created_at", "2018-12-05 16:31:14.620473"], ["updated_at", "2018-12-05 16:31:14.620473"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:14.624983"], ["updated_at", "2018-12-05 16:31:14.624983"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2762], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3302], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3302], ["room_id", 2762], ["created_at", "2018-12-05 16:31:14.634872"], ["updated_at", "2018-12-05 16:31:14.634872"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2669], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$ye8JkQuiTYZvv3XRg.i8jOzRlGe5XnPlVeee.yF3xGfMKzkNpom/m"], ["created_at", "2018-12-05 16:31:14.650704"], ["updated_at", "2018-12-05 16:31:14.650704"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3303"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "mRFOnFvFpkL3ztJ66Pzf0Q"], ["updated_at", "2018-12-05 16:31:14.662039"], ["id", 3303]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-05 16:31:14.667390"], ["reset_sent_at", "2018-12-05 16:31:14.666490"], ["id", 3303]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.3ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.8ms)

UserMailer#password_reset: processed outbound mail in 25.3ms Sent mail to teste@unb.com.br (6.5ms) Date: Wed, 05 Dec 2018 14:31:14 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c07fd52aaade_10b6da0f20874f@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c07fd52a9521_10b6da0f208737c";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c07fd52a9521_10b6da0f208737c Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/mRFOnFvFpkL3ztJ66Pzf0Q/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c07fd52a9521_10b6da0f208737c Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/mRFOnFvFpkL3ztJ66Pzf0Q/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c07fd52a9521_10b6da0f208737c–

Redirected to test.host/login Completed 302 Found in 46ms (ActiveRecord: 3.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$jqvVRG14coDqOFQi4S17mun/BUvH973.zmS.AauVo.dkNS4JwP05K"], ["created_at", "2018-12-05 16:31:14.711757"], ["updated_at", "2018-12-05 16:31:14.711757"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.1ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$sayahcCV.FjGOp2TECumJ.5iHn2F/NSBUK3h2BCaZRyvf3GvIZQ4a"], ["created_at", "2018-12-05 16:31:14.731493"], ["updated_at", "2018-12-05 16:31:14.731493"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3305"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$7K7VfSbkp2V9LacYLSE7feyB9f5jRcb.DUPVxaBGPvyuTLlzOzkV6"], ["updated_at", "2018-12-05 16:31:14.743621"], ["id", 3305]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 11ms (ActiveRecord: 2.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$FsIO90E0nHQK.b9pCtHZvej26//kRW66nvlYk3gDiOqlG9PEhqUbS"], ["created_at", "2018-12-05 16:31:14.757511"], ["updated_at", "2018-12-05 16:31:14.757511"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3306"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$r2zOnvyc5E40AFeMMnvvv.yfdgZcS1QttIEqVmrSZcxcaQSyORIJe"], ["created_at", "2018-12-05 16:31:14.779169"], ["updated_at", "2018-12-05 16:31:14.779169"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3307"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 66ms (Views: 2.4ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$Q3ObKdiN7MSV9I7sNAPJNexcCvN2.1Ei2oXEiWitBTwLveV2cIOyC"], ["created_at", "2018-12-05 16:31:14.857768"], ["updated_at", "2018-12-05 16:31:14.857768"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3308"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$smBHtS7EZXzJgqlIdDy9XOPW/BDLrdMIlSwh.8vKgeYMsH5gqw0ku"], ["created_at", "2018-12-05 16:31:14.879374"], ["updated_at", "2018-12-05 16:31:14.879374"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3309"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.dwUF4uJUQqjJGH6Sb8mL.rWzdryClQGza2bDWb5wG0qayJU0rr7e"], ["created_at", "2018-12-05 16:31:14.916263"], ["updated_at", "2018-12-05 16:31:14.916263"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U1WqshV9.sS/mh7wMxIXXO1Qia9zkC5w5qIzrSn4wS2nPZg9SzNei"], ["created_at", "2018-12-05 16:31:14.933138"], ["updated_at", "2018-12-05 16:31:14.933138"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.2ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ULKWdDwdf4PGgkKy7WR5weAi/Suai9GqCRg5Q5PyffF0AtxxqnY4S"], ["created_at", "2018-12-05 16:31:14.950736"], ["updated_at", "2018-12-05 16:31:14.950736"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:14.954610"], ["updated_at", "2018-12-05 16:31:14.954610"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2763], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3312], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3312], ["room_id", 2763], ["created_at", "2018-12-05 16:31:14.966094"], ["updated_at", "2018-12-05 16:31:14.966094"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 5.0ms

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DEUDWoqKmuQ38Lkst9UyDu8Z2vSXUykWlBBD6NjmHOttV8h6OVw3a"], ["created_at", "2018-12-05 16:31:14.985414"], ["updated_at", "2018-12-05 16:31:14.985414"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:14.989902"], ["updated_at", "2018-12-05 16:31:14.989902"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2764], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3313], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3313], ["room_id", 2764], ["created_at", "2018-12-05 16:31:14.997839"], ["updated_at", "2018-12-05 16:31:14.997839"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$g0kA/Idb2oqiJdEdy.qXJueZsVa8tijG1hPKGqD9i6crokJ5abiQK"], ["created_at", "2018-12-05 16:31:15.065259"], ["updated_at", "2018-12-05 16:31:15.065259"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:15.069864"], ["updated_at", "2018-12-05 16:31:15.069864"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:31:15 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:15.083930"], ["last_sign_in_at", "2018-12-05 16:31:15.083930"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:15.085239"], ["id", 3314]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2765"}
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2765], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3314], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3314], ["room_id", 2765], ["created_at", "2018-12-05 16:31:15.104104"], ["updated_at", "2018-12-05 16:31:15.104104"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.9ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2765], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LZN3NxTZsfH/mPv34aYKsuf3w6uFY7FoTxPFrUbOvivw3e6y.zccC"], ["created_at", "2018-12-05 16:31:15.120782"], ["updated_at", "2018-12-05 16:31:15.120782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:15.125441"], ["updated_at", "2018-12-05 16:31:15.125441"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:31:15 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:15.130485"], ["last_sign_in_at", "2018-12-05 16:31:15.130485"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:15.131428"], ["id", 3315]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2766"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2766], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3315], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3315], ["room_id", 2766], ["created_at", "2018-12-05 16:31:15.144659"], ["updated_at", "2018-12-05 16:31:15.144659"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QS65G4QbSumfwF5Ze3OAF.inIDCekVqTw1nVbGvOjRwt4TgiymJHW"], ["created_at", "2018-12-05 16:31:15.156853"], ["updated_at", "2018-12-05 16:31:15.156853"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:15.161029"], ["updated_at", "2018-12-05 16:31:15.161029"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:31:15 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:15.166318"], ["last_sign_in_at", "2018-12-05 16:31:15.166318"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:15.167324"], ["id", 3316]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2767", "user_id"=>"3316"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2767], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3316], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3316], ["room_id", 2767], ["created_at", "2018-12-05 16:31:15.178959"], ["updated_at", "2018-12-05 16:31:15.178959"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.6ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:31:15 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2767", "user_id"=>"3316"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3316], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2767], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3316], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3316], ["room_id", 2767], ["created_at", "2018-12-05 16:31:15.195823"], ["updated_at", "2018-12-05 16:31:15.195823"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$42Nt4z9u94Oym0WTmDtvYeYMvf07yt9gkAo6AKIktk5Gq/bNqBwAK"], ["created_at", "2018-12-05 16:31:15.208565"], ["updated_at", "2018-12-05 16:31:15.208565"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:15.212752"], ["updated_at", "2018-12-05 16:31:15.212752"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:31:15 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:15.218295"], ["last_sign_in_at", "2018-12-05 16:31:15.218295"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:15.219411"], ["id", 3317]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2768", "user_id"=>"3317"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2768], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3317], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3317], ["room_id", 2768], ["created_at", "2018-12-05 16:31:15.231172"], ["updated_at", "2018-12-05 16:31:15.231172"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.6ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:31:15 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2768", "user_id"=>"3317"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3317], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2768], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3317], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3317], ["room_id", 2768], ["created_at", "2018-12-05 16:31:15.250705"], ["updated_at", "2018-12-05 16:31:15.250705"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 15ms (ActiveRecord: 3.7ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2768], ["user_id", 3317], ["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lN0JD9E.MKBSAE616zdVxeK.61xPmIQpPjFlYCK9jGMZ0Z6JUgccy"], ["created_at", "2018-12-05 16:31:15.266895"], ["updated_at", "2018-12-05 16:31:15.266895"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:15.272465"], ["updated_at", "2018-12-05 16:31:15.272465"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:31:15 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:15.280803"], ["last_sign_in_at", "2018-12-05 16:31:15.280803"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:15.282363"], ["id", 3318]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2769", "user_id"=>"3318"}
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2769], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3318], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3318], ["room_id", 2769], ["created_at", "2018-12-05 16:31:15.296623"], ["updated_at", "2018-12-05 16:31:15.296623"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:31:15 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2769", "user_id"=>"3318"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3318], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2769], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3318], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3318], ["room_id", 2769], ["created_at", "2018-12-05 16:31:15.313745"], ["updated_at", "2018-12-05 16:31:15.313745"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.5ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2769], ["user_id", 3318], ["status", 1], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$o6Wgr47a9dPP282UHGhieu6r1zWexuuPI.FBfFKRXQJ1.AwxXAT26"], ["created_at", "2018-12-05 16:31:15.328563"], ["updated_at", "2018-12-05 16:31:15.328563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:15.333239"], ["updated_at", "2018-12-05 16:31:15.333239"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:31:15 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:15.338423"], ["last_sign_in_at", "2018-12-05 16:31:15.338423"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:15.339551"], ["id", 3319]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2770"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2770], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$74FcuAzHsVLaB3u7jrAG7uMnPanJkT8qLk2RKnIyNffuJj9NwA5Z6"], ["created_at", "2018-12-05 16:31:15.361009"], ["updated_at", "2018-12-05 16:31:15.361009"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:15.365359"], ["updated_at", "2018-12-05 16:31:15.365359"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:31:15 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:15.370534"], ["last_sign_in_at", "2018-12-05 16:31:15.370534"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:15.371725"], ["id", 3320]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2771"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wxsUbTAXC1B.fCRPoZHvEO9ZZVg5mp0aPKyT5EaVIVrvu6FlOmkVu"], ["created_at", "2018-12-05 16:31:15.389253"], ["updated_at", "2018-12-05 16:31:15.389253"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:15.393507"], ["updated_at", "2018-12-05 16:31:15.393507"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2772], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3321], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3321], ["room_id", 2772], ["created_at", "2018-12-05 16:31:15.400879"], ["updated_at", "2018-12-05 16:31:15.400879"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2772” for 127.0.0.1 at 2018-12-05 14:31:15 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:15.405060"], ["last_sign_in_at", "2018-12-05 16:31:15.405060"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:15.405975"], ["id", 3321]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2772"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2772], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2772')
Rendered appointments/show.html.erb within layouts/application (49.5ms)
Rendered layouts/_header-user.html.erb (2.8ms)

Completed 200 OK in 812ms (Views: 794.6ms | ActiveRecord: 1.3ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$emGmM5JWtSPUHjGklPZ/EOaALL7KBS6SE4DvsnABwr4jS8Vukgq/."], ["created_at", "2018-12-05 16:31:16.232718"], ["updated_at", "2018-12-05 16:31:16.232718"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:16.237449"], ["updated_at", "2018-12-05 16:31:16.237449"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2773], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3322], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3322], ["room_id", 2773], ["created_at", "2018-12-05 16:31:16.245754"], ["updated_at", "2018-12-05 16:31:16.245754"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2681/edit” for 127.0.0.1 at 2018-12-05 14:31:16 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:16.250208"], ["last_sign_in_at", "2018-12-05 16:31:16.250208"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:16.251252"], ["id", 3322]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2681"}
Appointment Load (0.9ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2681], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 23ms (Views: 9.0ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$n1uqpjoi171IBC3P7ed0juw9MBxr2RQGMAdLs6Y7B6hecuWuc8u.6"], ["created_at", "2018-12-05 16:31:16.310792"], ["updated_at", "2018-12-05 16:31:16.310792"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 14:31:16 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:16.315027"], ["last_sign_in_at", "2018-12-05 16:31:16.315027"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:16.315941"], ["id", 3323]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 24ms (Views: 7.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GYgbbqv/hg6fDN5C02pZ8efa8DCzTaj9xR7N77DTZCdknF0Vs2FPy"], ["created_at", "2018-12-05 16:31:16.352832"], ["updated_at", "2018-12-05 16:31:16.352832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:16.356768"], ["updated_at", "2018-12-05 16:31:16.356768"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2774], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3324], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3324], ["room_id", 2774], ["created_at", "2018-12-05 16:31:16.364220"], ["updated_at", "2018-12-05 16:31:16.364220"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2774], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3324], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3324], ["room_id", 2774], ["created_at", "2018-12-05 16:31:16.373290"], ["updated_at", "2018-12-05 16:31:16.373290"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 14:31:16 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:16.378621"], ["last_sign_in_at", "2018-12-05 16:31:16.378621"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:16.380085"], ["id", 3324]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3324]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 42ms (Views: 10.1ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AhsoiX4630J/NONudoBPBeP3TmrBO.t2Gd6Wzx2Q/xNkyU7lhBsNS"], ["created_at", "2018-12-05 16:31:16.437340"], ["updated_at", "2018-12-05 16:31:16.437340"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:16.441721"], ["updated_at", "2018-12-05 16:31:16.441721"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2775], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3325], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3325], ["room_id", 2775], ["created_at", "2018-12-05 16:31:16.450245"], ["updated_at", "2018-12-05 16:31:16.450245"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2775], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3325], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3325], ["room_id", 2775], ["created_at", "2018-12-05 16:31:16.458445"], ["updated_at", "2018-12-05 16:31:16.458445"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 14:31:16 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:16.462507"], ["last_sign_in_at", "2018-12-05 16:31:16.462507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:16.463374"], ["id", 3325]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3325]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SkFxD3SWUaZhqPrPQn92O.fEwF82zYgSp/y9NuBVvVsIuhSgNPxKK"], ["created_at", "2018-12-05 16:31:16.490125"], ["updated_at", "2018-12-05 16:31:16.490125"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:16.494873"], ["updated_at", "2018-12-05 16:31:16.494873"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2776], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3326], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3326], ["room_id", 2776], ["created_at", "2018-12-05 16:31:16.502943"], ["updated_at", "2018-12-05 16:31:16.502943"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2686” for 127.0.0.1 at 2018-12-05 14:31:16 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:16.507331"], ["last_sign_in_at", "2018-12-05 16:31:16.507331"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:16.508365"], ["id", 3326]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2686"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2686], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2686]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$smCRbzbHNo.e3CD2ZgJtLOOES3NBuI8L8w3LRoZXkNg1Ba1HqQ4Eq"], ["created_at", "2018-12-05 16:31:16.556563"], ["updated_at", "2018-12-05 16:31:16.556563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:16.561753"], ["updated_at", "2018-12-05 16:31:16.561753"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$U30Xvb2HtFCQLmh0irvwFORTcXCxjvBqjtdnaaWAw0r7nUx02IljC"], ["created_at", "2018-12-05 16:31:16.569975"], ["updated_at", "2018-12-05 16:31:16.569975"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2777], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3328], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3328], ["room_id", 2777], ["created_at", "2018-12-05 16:31:16.579361"], ["updated_at", "2018-12-05 16:31:16.579361"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2687” for 127.0.0.1 at 2018-12-05 14:31:16 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:16.585097"], ["last_sign_in_at", "2018-12-05 16:31:16.585097"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:16.586460"], ["id", 3327]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2687"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2687], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2777], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3328], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 10ms (ActiveRecord: 2.1ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SUUxWuohCyEmsxcskVkB4OehQTLI8zD0N.xq1xt6jNl7dxn0YrTmS"], ["created_at", "2018-12-05 16:31:16.614009"], ["updated_at", "2018-12-05 16:31:16.614009"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:16.618651"], ["updated_at", "2018-12-05 16:31:16.618651"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Z3X/2QVkCYfxaK4psvkcVOHxdqcGjjmkymPdC/4Iw4lthzrI17Bp."], ["created_at", "2018-12-05 16:31:16.628730"], ["updated_at", "2018-12-05 16:31:16.628730"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2778], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3330], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3330], ["room_id", 2778], ["created_at", "2018-12-05 16:31:16.638114"], ["updated_at", "2018-12-05 16:31:16.638114"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2688” for 127.0.0.1 at 2018-12-05 14:31:16 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:16.643582"], ["last_sign_in_at", "2018-12-05 16:31:16.643582"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:16.644851"], ["id", 3329]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2688"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2688], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2778], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3330], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$r5Ep.xxHR4pW2.73uzPN0O4HrAuzRvV691ENLwybpTenOmGbXIlFm"], ["created_at", "2018-12-05 16:31:16.668221"], ["updated_at", "2018-12-05 16:31:16.668221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:16.672990"], ["updated_at", "2018-12-05 16:31:16.672990"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$enwSC1BeiDAy7oIk9K0xM.UAPgQLCYaKQyjSbsCrYB7wzDaC6uydm"], ["created_at", "2018-12-05 16:31:16.681743"], ["updated_at", "2018-12-05 16:31:16.681743"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2779], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3332], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3332], ["room_id", 2779], ["created_at", "2018-12-05 16:31:16.692544"], ["updated_at", "2018-12-05 16:31:16.692544"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2689” for 127.0.0.1 at 2018-12-05 14:31:16 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:16.698112"], ["last_sign_in_at", "2018-12-05 16:31:16.698112"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:16.699459"], ["id", 3331]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2689"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2689], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2779], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3332], ["LIMIT", 1]]
SQL (0.8ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-05 16:31:16.712298"], ["id", 2689]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.9ms Sent mail to 123@123.com (6.7ms) Date: Wed, 05 Dec 2018 14:31:16 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c07fd54b0a17_10b6da0f20881f3@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c07fd54af963_10b6da0f2088073";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c07fd54af963_10b6da0f2088073 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c07fd54af963_10b6da0f2088073 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c07fd54af963_10b6da0f2088073–

Completed 302 Found in 24ms (ActiveRecord: 2.8ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J6/kEA3VMFXIxv7VWIFoZOKtFX7eamna5ujf5R.VzFZZQ.4WOaNim"], ["created_at", "2018-12-05 16:31:16.739555"], ["updated_at", "2018-12-05 16:31:16.739555"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:16.744558"], ["updated_at", "2018-12-05 16:31:16.744558"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UnQZXtOEgRTxc3/msky26OZ.kA6gJ9QfaAKgy5nrBV6./3brqp53."], ["created_at", "2018-12-05 16:31:16.752565"], ["updated_at", "2018-12-05 16:31:16.752565"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2780], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3334], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3334], ["room_id", 2780], ["created_at", "2018-12-05 16:31:16.761931"], ["updated_at", "2018-12-05 16:31:16.761931"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 16:31:16.766270"], ["id", 2690]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2780], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3334], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3334], ["room_id", 2780], ["created_at", "2018-12-05 16:31:16.774364"], ["updated_at", "2018-12-05 16:31:16.774364"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 16:31:16.778375"], ["id", 2691]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 14:31:16 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:16.782656"], ["last_sign_in_at", "2018-12-05 16:31:16.782656"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:16.783619"], ["id", 3333]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3334], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2780], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3334], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2780], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (9.0ms)
Rendered layouts/_header-admin.html.erb (3.3ms)

Completed 200 OK in 21ms (Views: 15.8ms | ActiveRecord: 1.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nJ1LElfvj2ucT0tJOD/sFeJCY5BuZIeP9codtcRhV3oY1CC6bXzDe"], ["created_at", "2018-12-05 16:31:16.818355"], ["updated_at", "2018-12-05 16:31:16.818355"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:16.822556"], ["updated_at", "2018-12-05 16:31:16.822556"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$k0fWgOwN7s/GA45EuwI9HusdF7rKC3YDEB2gSJe.ka80JPRi.uTF6"], ["created_at", "2018-12-05 16:31:16.830435"], ["updated_at", "2018-12-05 16:31:16.830435"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2781], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3336], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3336], ["room_id", 2781], ["created_at", "2018-12-05 16:31:16.838462"], ["updated_at", "2018-12-05 16:31:16.838462"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 16:31:16.842884"], ["id", 2692]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2781], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3336], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3336], ["room_id", 2781], ["created_at", "2018-12-05 16:31:16.850723"], ["updated_at", "2018-12-05 16:31:16.850723"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 16:31:16.854476"], ["id", 2693]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 14:31:16 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:16.859597"], ["last_sign_in_at", "2018-12-05 16:31:16.859597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:16.860938"], ["id", 3335]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3336], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2781], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3336], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2781], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.8ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 16ms (Views: 11.6ms | ActiveRecord: 2.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rY5hRv9Zu5xzuhytuUzIOuBy.gIsDGd9NhCcplkOoETk6lHllClQC"], ["created_at", "2018-12-05 16:31:16.905424"], ["updated_at", "2018-12-05 16:31:16.905424"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 14:31:16 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:16.910140"], ["last_sign_in_at", "2018-12-05 16:31:16.910140"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:16.911239"], ["id", 3337]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (5.7ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 25ms (Views: 10.9ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$chPmHiwn8V44FmEGXU6fxOUPmbWQ6rlFPzd3jxHCbiyrpk44YsX4."], ["created_at", "2018-12-05 16:31:16.963585"], ["updated_at", "2018-12-05 16:31:16.963585"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 14:31:16 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:16.967794"], ["last_sign_in_at", "2018-12-05 16:31:16.967794"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:16.969032"], ["id", 3338]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MnPCzgkPkJlVld0x5fZ8xuZSIlQaXCH6dQ.6CELQv.rH./.i5acFS"], ["created_at", "2018-12-05 16:31:16.986814"], ["updated_at", "2018-12-05 16:31:16.986814"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 14:31:16 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:16.992679"], ["last_sign_in_at", "2018-12-05 16:31:16.992679"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:16.993828"], ["id", 3339]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 28ms (Views: 9.2ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fD4Lzdc2VdtM0g/i5WpUbO.nZ37oBjrYGmwvTKoTLl9phvk4ev2qy"], ["created_at", "2018-12-05 16:31:17.036349"], ["updated_at", "2018-12-05 16:31:17.036349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.040465"], ["last_sign_in_at", "2018-12-05 16:31:17.040465"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.041478"], ["id", 3340]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 14:31:17 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OevpY.T90DJo28mkRyU/Yu9s8vyAeZENNhYOIpQZYufr2GjVqYwl2"], ["created_at", "2018-12-05 16:31:17.072935"], ["updated_at", "2018-12-05 16:31:17.072935"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.077126"], ["updated_at", "2018-12-05 16:31:17.077126"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2782” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.081004"], ["last_sign_in_at", "2018-12-05 16:31:17.081004"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.082024"], ["id", 3341]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2782"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2782], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (2.6ms)

Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CcCmiUTOfZdbljAKA2htduz.6WG27ctYgPxdTRnIGqh8BzUdPNEnG"], ["created_at", "2018-12-05 16:31:17.108917"], ["updated_at", "2018-12-05 16:31:17.108917"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.113224"], ["updated_at", "2018-12-05 16:31:17.113224"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2783” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.117110"], ["last_sign_in_at", "2018-12-05 16:31:17.117110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.118131"], ["id", 3342]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2783"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2783], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.135524"], ["updated_at", "2018-12-05 16:31:17.135524"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2784” for 127.0.0.1 at 2018-12-05 14:31:17 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2784"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vEmeQxhu.9hSUn7QrLHdnOydmWa7/.raPtMiaXreLSKLlUZhMN7yS"], ["created_at", "2018-12-05 16:31:17.150540"], ["updated_at", "2018-12-05 16:31:17.150540"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.155023"], ["updated_at", "2018-12-05 16:31:17.155023"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2785” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.159219"], ["last_sign_in_at", "2018-12-05 16:31:17.159219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.160204"], ["id", 3343]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2785"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.179978"], ["updated_at", "2018-12-05 16:31:17.179978"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2786” for 127.0.0.1 at 2018-12-05 14:31:17 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2786"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$02/ylId5lMF4h7zi/F3oPu.HBEaUwfhkYApwHCnk0kZnhg36r8zcO"], ["created_at", "2018-12-05 16:31:17.194549"], ["updated_at", "2018-12-05 16:31:17.194549"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.198649"], ["updated_at", "2018-12-05 16:31:17.198649"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2787/edit” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.202457"], ["last_sign_in_at", "2018-12-05 16:31:17.202457"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.203881"], ["id", 3344]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2787"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2787], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 12ms (Views: 9.1ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U3mQJKCa16hBB6YyT1uDjeJra31777v9XMmUA0rvLBZwQVlMt5AXa"], ["created_at", "2018-12-05 16:31:17.230938"], ["updated_at", "2018-12-05 16:31:17.230938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.235291"], ["updated_at", "2018-12-05 16:31:17.235291"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2788/edit” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.239194"], ["last_sign_in_at", "2018-12-05 16:31:17.239194"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.240278"], ["id", 3345]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2788"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2788], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.261180"], ["updated_at", "2018-12-05 16:31:17.261180"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2789” for 127.0.0.1 at 2018-12-05 14:31:17 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2789"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZTrQy0mwlM2SPhnGKrdOCe/W2d8E7vom0QD5.VSvEfNlKsAjQjiWK"], ["created_at", "2018-12-05 16:31:17.278958"], ["updated_at", "2018-12-05 16:31:17.278958"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.283677"], ["last_sign_in_at", "2018-12-05 16:31:17.283677"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.284731"], ["id", 3346]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.290870"], ["updated_at", "2018-12-05 16:31:17.290870"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3BnlqPcmE8k8LyZXKp1KgusyHDMTsXg7WsrT2N5LA84/4r32oMJa2"], ["created_at", "2018-12-05 16:31:17.304473"], ["updated_at", "2018-12-05 16:31:17.304473"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.309718"], ["last_sign_in_at", "2018-12-05 16:31:17.309718"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.310762"], ["id", 3347]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.317089"], ["updated_at", "2018-12-05 16:31:17.317089"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SRdS0RiLFQxDvV7/fg4tpOOxyEMnTcc0f8.6/zFLanCFM94z/jBoO"], ["created_at", "2018-12-05 16:31:17.328973"], ["updated_at", "2018-12-05 16:31:17.328973"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.334185"], ["last_sign_in_at", "2018-12-05 16:31:17.334185"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.335102"], ["id", 3348]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.4ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hnwNcoUWeH1FpTZYCMGrd.MggtETGmTqJESlbJeR1/v/ORr3jeYBC"], ["created_at", "2018-12-05 16:31:17.353153"], ["updated_at", "2018-12-05 16:31:17.353153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.358107"], ["last_sign_in_at", "2018-12-05 16:31:17.358107"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.359047"], ["id", 3349]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NN5qlT0E9NRUW3fab4eZjeEUM0vXFKmV5adAljxzgS2dgpUhGTW62"], ["created_at", "2018-12-05 16:31:17.376461"], ["updated_at", "2018-12-05 16:31:17.376461"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.381710"], ["last_sign_in_at", "2018-12-05 16:31:17.381710"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.382709"], ["id", 3350]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3a7FsfKtowDSc8BBPPxe/eU2t9oGlh5zwOwFe/AcfEWlOiMJZocOu"], ["created_at", "2018-12-05 16:31:17.397301"], ["updated_at", "2018-12-05 16:31:17.397301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.401271"], ["updated_at", "2018-12-05 16:31:17.401271"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2792” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.405609"], ["last_sign_in_at", "2018-12-05 16:31:17.405609"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.406564"], ["id", 3351]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2792"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2792], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 16:31:17.414782"], ["id", 2792]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2792 Completed 302 Found in 7ms (ActiveRecord: 1.5ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2x8UHxk2EtyuZ8LkFw7vkefa2CP8yupUa7mSxJKEwHvP0.pXU/29K"], ["created_at", "2018-12-05 16:31:17.428773"], ["updated_at", "2018-12-05 16:31:17.428773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.432882"], ["updated_at", "2018-12-05 16:31:17.432882"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2793” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.437253"], ["last_sign_in_at", "2018-12-05 16:31:17.437253"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.438186"], ["id", 3352]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2793"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2793], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 16:31:17.445745"], ["id", 2793]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2793 Completed 302 Found in 7ms (ActiveRecord: 1.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K1WQWD6af91sEjKABvNE3.ulfqoF/qfh91KqeSkQKDvrt1RgYe65C"], ["created_at", "2018-12-05 16:31:17.458709"], ["updated_at", "2018-12-05 16:31:17.458709"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.462811"], ["updated_at", "2018-12-05 16:31:17.462811"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2794” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.469496"], ["last_sign_in_at", "2018-12-05 16:31:17.469496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.470694"], ["id", 3353]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2794"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2794], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 0.9ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qUZZzzP/zpgM/lAIuSVLSuHL5dQrGMQqeO6g5wIXHqCildcTD1aNi"], ["created_at", "2018-12-05 16:31:17.499363"], ["updated_at", "2018-12-05 16:31:17.499363"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.503740"], ["updated_at", "2018-12-05 16:31:17.503740"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2795” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.508404"], ["last_sign_in_at", "2018-12-05 16:31:17.508404"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.509569"], ["id", 3354]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2795"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2795], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 15ms (Views: 8.1ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NNVUkFeNLinmA/Oneq8ZWerMW/puozE4Xwox59f/PcYSEmvtWgcYK"], ["created_at", "2018-12-05 16:31:17.540641"], ["updated_at", "2018-12-05 16:31:17.540641"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.545933"], ["last_sign_in_at", "2018-12-05 16:31:17.545933"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.546934"], ["id", 3355]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N0S8MRyC58CVRfnLffauquSUzmMEIslWhlWsX8B4JcYUkKEbyEYie"], ["created_at", "2018-12-05 16:31:17.560970"], ["updated_at", "2018-12-05 16:31:17.560970"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.564791"], ["updated_at", "2018-12-05 16:31:17.564791"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2796” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.568229"], ["last_sign_in_at", "2018-12-05 16:31:17.568229"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.569171"], ["id", 3356]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2796"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2796], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2796]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$05.aPKEqE56Fp3tbLZBZH.ABPjY7r9z5/qA/jB0sHSVK9PPGgQR9O"], ["created_at", "2018-12-05 16:31:17.588469"], ["updated_at", "2018-12-05 16:31:17.588469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.592612"], ["updated_at", "2018-12-05 16:31:17.592612"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2797” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.596255"], ["last_sign_in_at", "2018-12-05 16:31:17.596255"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.597116"], ["id", 3357]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2797"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2797], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2797]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qcnrDbXtij98dF.FZykaFujoxMo.47jziMhg.Lj0hmFryABx/1/hW"], ["created_at", "2018-12-05 16:31:17.618510"], ["updated_at", "2018-12-05 16:31:17.618510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.624082"], ["updated_at", "2018-12-05 16:31:17.624082"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2798” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.628412"], ["last_sign_in_at", "2018-12-05 16:31:17.628412"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.629504"], ["id", 3358]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2798"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$stmIPGuTEj8ZtfPFZa5guue2DgUe7rkDcQaod6YCLObtFmx1JLiSS"], ["created_at", "2018-12-05 16:31:17.645726"], ["updated_at", "2018-12-05 16:31:17.645726"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.649903"], ["updated_at", "2018-12-05 16:31:17.649903"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2799” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.654528"], ["last_sign_in_at", "2018-12-05 16:31:17.654528"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.655936"], ["id", 3359]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2799"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eQrbpPOo7ym6sGIJL03u1.0wepTQ/kDSPSeG/rwgQBRW.zxrr9ObS"], ["created_at", "2018-12-05 16:31:17.673193"], ["updated_at", "2018-12-05 16:31:17.673193"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.677820"], ["last_sign_in_at", "2018-12-05 16:31:17.677820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.678753"], ["id", 3360]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rC0Q3bXhuDdQmwOV8716nuMtWdLfgDpr7XzHVycF81YL97R4SiPi."], ["created_at", "2018-12-05 16:31:17.705354"], ["updated_at", "2018-12-05 16:31:17.705354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.709966"], ["updated_at", "2018-12-05 16:31:17.709966"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.713630"], ["updated_at", "2018-12-05 16:31:17.713630"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.716992"], ["updated_at", "2018-12-05 16:31:17.716992"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2800], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3361], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3361], ["room_id", 2800], ["created_at", "2018-12-05 16:31:17.725413"], ["updated_at", "2018-12-05 16:31:17.725413"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.730038"], ["last_sign_in_at", "2018-12-05 16:31:17.730038"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.731052"], ["id", 3361]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 45ms (Views: 6.5ms | ActiveRecord: 1.8ms)

Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ExGPPd241jMFR734LHjDuuuHbnoHE1H/I2w.tzNPyiU/mPpGsO4ta"], ["created_at", "2018-12-05 16:31:17.793687"], ["updated_at", "2018-12-05 16:31:17.793687"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.798608"], ["updated_at", "2018-12-05 16:31:17.798608"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.802596"], ["updated_at", "2018-12-05 16:31:17.802596"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:31:17.806077"], ["updated_at", "2018-12-05 16:31:17.806077"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2803], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3362], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3362], ["room_id", 2803], ["created_at", "2018-12-05 16:31:17.814702"], ["updated_at", "2018-12-05 16:31:17.814702"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-05 14:31:17 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:31:17.819439"], ["last_sign_in_at", "2018-12-05 16:31:17.819439"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:31:17.820572"], ["id", 3362]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NjvuAUX/rX.ivdHUvjqobeYXdTQIzqtBgpuWiADyWlJvz3fMMiga2"], ["created_at", "2018-12-05 16:34:59.252558"], ["updated_at", "2018-12-05 16:34:59.252558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Y98ue4uiPihHp33b1awpF.OAXfU8rI5XlPQaZBwdygs2P6eBI9u5G"], ["created_at", "2018-12-05 16:34:59.264996"], ["updated_at", "2018-12-05 16:34:59.264996"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:34:59.285435"], ["updated_at", "2018-12-05 16:34:59.285435"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2806], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3364], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3364], ["room_id", 2806], ["created_at", "2018-12-05 16:34:59.330368"], ["updated_at", "2018-12-05 16:34:59.330368"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2696"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2696], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2806], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3364], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.4ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.4ms)

UserMailer#status_notification: processed outbound mail in 370.5ms Sent mail to 123@123.com (11.5ms) Date: Wed, 05 Dec 2018 14:34:59 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c07fe33b24dc_1175109af14555af@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c07fe33b05ee_1175109af1455454";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c07fe33b05ee_1175109af1455454 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c07fe33b05ee_1175109af1455454 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c07fe33b05ee_1175109af1455454–

Completed 302 Found in 393ms (ActiveRecord: 1.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$A9ETQX3qSUI4Q07IvRFdFu/KSiCdJT9a.bFDKvV.Lg99PprsgIYe2"], ["created_at", "2018-12-05 16:34:59.746204"], ["updated_at", "2018-12-05 16:34:59.746204"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uM5mebQidNDfKu7wSYQjnOGXbIbq6a49b7X0kGO6MsMN5EURHj/Y."], ["created_at", "2018-12-05 16:34:59.754131"], ["updated_at", "2018-12-05 16:34:59.754131"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:34:59.759072"], ["updated_at", "2018-12-05 16:34:59.759072"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2807], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3366], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3366], ["room_id", 2807], ["created_at", "2018-12-05 16:34:59.769826"], ["updated_at", "2018-12-05 16:34:59.769826"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2697"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2697], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2807], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3366], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-05 16:34:59.781357"], ["id", 2697]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms Sent mail to 123@123.com (6.2ms) Date: Wed, 05 Dec 2018 14:34:59 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c07fe33c1552_1175109af1455775@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c07fe33c0493_1175109af1455654";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c07fe33c0493_1175109af1455654 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c07fe33c0493_1175109af1455654 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c07fe33c0493_1175109af1455654–

Completed 302 Found in 22ms (ActiveRecord: 2.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nUTaiQU3lp9MZSeyr/Rl/uibwOcHH3lo4qZJzbUiZRUDqhc6NtuSS"], ["created_at", "2018-12-05 16:34:59.805596"], ["updated_at", "2018-12-05 16:34:59.805596"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.ryFfhsiEOHJVDEgvoptXOLnJRxRPj14sUaSmQvv3Jx6L2UOuq6tG"], ["created_at", "2018-12-05 16:34:59.814182"], ["updated_at", "2018-12-05 16:34:59.814182"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:34:59.818277"], ["updated_at", "2018-12-05 16:34:59.818277"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2808], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3368], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3368], ["room_id", 2808], ["created_at", "2018-12-05 16:34:59.827298"], ["updated_at", "2018-12-05 16:34:59.827298"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tvt6rtgWebLtNVjweVM/sewSplRE8RQunaHiFu5b71oiL6KnDT3d2"], ["created_at", "2018-12-05 16:34:59.843530"], ["updated_at", "2018-12-05 16:34:59.843530"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$x3cUDW84YIWzBTmPjmoVYezbFf7WpGKU6gXXcNWgYqNQT48JrT0Q."], ["created_at", "2018-12-05 16:34:59.850867"], ["updated_at", "2018-12-05 16:34:59.850867"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:34:59.854470"], ["updated_at", "2018-12-05 16:34:59.854470"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2809], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3370], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3370], ["room_id", 2809], ["created_at", "2018-12-05 16:34:59.863315"], ["updated_at", "2018-12-05 16:34:59.863315"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2699], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$pMm7LH/ldMGPcdmJkcJ7g.S5Nix44LsLGLTxIP55OntRv9dZa6vJC"], ["created_at", "2018-12-05 16:34:59.877555"], ["updated_at", "2018-12-05 16:34:59.877555"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3371"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "thYG-5QQPP_9cug2fUhHPA"], ["updated_at", "2018-12-05 16:34:59.886127"], ["id", 3371]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-05 16:34:59.889704"], ["reset_sent_at", "2018-12-05 16:34:59.889025"], ["id", 3371]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)

UserMailer#password_reset: processed outbound mail in 10.8ms Sent mail to teste@unb.com.br (6.5ms) Date: Wed, 05 Dec 2018 14:34:59 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c07fe33dd3bd_1175109af145605e@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c07fe33dc339_1175109af14559ec";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c07fe33dc339_1175109af14559ec Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/thYG-5QQPP_9cug2fUhHPA/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c07fe33dc339_1175109af14559ec Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/thYG-5QQPP_9cug2fUhHPA/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c07fe33dc339_1175109af14559ec–

Redirected to test.host/login Completed 302 Found in 29ms (ActiveRecord: 2.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$nKuEiT8l8h8ZF5txZRucJO9MA7HjDHcglWZ7K2obziPFqEKJ8BtKe"], ["created_at", "2018-12-05 16:34:59.919024"], ["updated_at", "2018-12-05 16:34:59.919024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.6ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$2Uu5I3EhpxTamNiZrIkdUupdykFoVs.lf.ezlJngS6QbPtrudbWrO"], ["created_at", "2018-12-05 16:34:59.937085"], ["updated_at", "2018-12-05 16:34:59.937085"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3373"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$1fYw78B3IRbKQrjgV/BDW.qhWO3sQooix3Gs9mY4hVDhulYZNvyCO"], ["updated_at", "2018-12-05 16:34:59.945787"], ["id", 3373]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 1.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$pgmUwDxBoQRnhPLtaWbek.8CTk.AsWA62jm59b1j8iHJKEl4THgEm"], ["created_at", "2018-12-05 16:34:59.958027"], ["updated_at", "2018-12-05 16:34:59.958027"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3374"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$eUJ0dukeKVz/YJnuGzAVMuGRw3niYbw./qukSh4egqxXyaXnC9Vga"], ["created_at", "2018-12-05 16:34:59.977809"], ["updated_at", "2018-12-05 16:34:59.977809"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3375"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.6ms)

Completed 200 OK in 21ms (Views: 3.0ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$zrX2A0s7S0lEOBOqmqC75uHoJQVjUgaRgozEGo4uhduZ72hCsoX5a"], ["created_at", "2018-12-05 16:35:00.013724"], ["updated_at", "2018-12-05 16:35:00.013724"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3376"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 8ms (Views: 1.2ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$G2u8jFvf1wsfEm2moX0l6uk01kP.b7lmKurPzWk5IBiHaHSvD.OTW"], ["created_at", "2018-12-05 16:35:00.035537"], ["updated_at", "2018-12-05 16:35:00.035537"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3377"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JcdDtUO98PyciaI6u4WCjuWwrJLZauY6GnxIsdug6PpcV6dwe8Nfi"], ["created_at", "2018-12-05 16:35:00.054525"], ["updated_at", "2018-12-05 16:35:00.054525"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.2ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kzGbji9Qoptb7As/I9LDG.cyOQzFQewxaF6NJ3GHhnoCCj8KbNSce"], ["created_at", "2018-12-05 16:35:00.072262"], ["updated_at", "2018-12-05 16:35:00.072262"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.7ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cwwr6INsoXk51bCNwulxR.trZqpihYToxWKuUb/ixYLVvlGJpNDLK"], ["created_at", "2018-12-05 16:35:00.090976"], ["updated_at", "2018-12-05 16:35:00.090976"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.096114"], ["updated_at", "2018-12-05 16:35:00.096114"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2810], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3380], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3380], ["room_id", 2810], ["created_at", "2018-12-05 16:35:00.105454"], ["updated_at", "2018-12-05 16:35:00.105454"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oKCWzN9PDHe/1kg.RNvOZOO99F7iSiOsm/QIGZrXSxs33sTNpoQ7e"], ["created_at", "2018-12-05 16:35:00.121316"], ["updated_at", "2018-12-05 16:35:00.121316"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.125248"], ["updated_at", "2018-12-05 16:35:00.125248"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2811], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3381], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3381], ["room_id", 2811], ["created_at", "2018-12-05 16:35:00.134087"], ["updated_at", "2018-12-05 16:35:00.134087"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pI1MM//3BbrbbAac2rZxAOXAKZrF/NHcHlLZdBuzJdrPkWQCxx5U6"], ["created_at", "2018-12-05 16:35:00.201873"], ["updated_at", "2018-12-05 16:35:00.201873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.206716"], ["updated_at", "2018-12-05 16:35:00.206716"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:35:00 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:00.220291"], ["last_sign_in_at", "2018-12-05 16:35:00.220291"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:00.221568"], ["id", 3382]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2812"}
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2812], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3382], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3382], ["room_id", 2812], ["created_at", "2018-12-05 16:35:00.242261"], ["updated_at", "2018-12-05 16:35:00.242261"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.8ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2812], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LTCDWVhmCDLdVRqV02aGJuHAoWUdmutwotN9Cr19.k5VNUkTLJ4ym"], ["created_at", "2018-12-05 16:35:00.262177"], ["updated_at", "2018-12-05 16:35:00.262177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.267085"], ["updated_at", "2018-12-05 16:35:00.267085"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:35:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:00.271930"], ["last_sign_in_at", "2018-12-05 16:35:00.271930"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:00.272974"], ["id", 3383]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2813"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2813], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3383], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3383], ["room_id", 2813], ["created_at", "2018-12-05 16:35:00.283813"], ["updated_at", "2018-12-05 16:35:00.283813"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 2.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jPVLLoxYDL/V3.g4eNCzF.vUZmvv536xfgpXSvOXDWjxSWfscEZBm"], ["created_at", "2018-12-05 16:35:00.296847"], ["updated_at", "2018-12-05 16:35:00.296847"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.301076"], ["updated_at", "2018-12-05 16:35:00.301076"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:35:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:00.307144"], ["last_sign_in_at", "2018-12-05 16:35:00.307144"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:00.308265"], ["id", 3384]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2814", "user_id"=>"3384"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2814], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3384], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3384], ["room_id", 2814], ["created_at", "2018-12-05 16:35:00.319343"], ["updated_at", "2018-12-05 16:35:00.319343"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:35:00 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2814", "user_id"=>"3384"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3384], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2814], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3384], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3384], ["room_id", 2814], ["created_at", "2018-12-05 16:35:00.335690"], ["updated_at", "2018-12-05 16:35:00.335690"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8SM7jhbSiQPsov3mqjJpa.J44p72aIvwcJ/sxjOLaYLn7gU0lKym."], ["created_at", "2018-12-05 16:35:00.347905"], ["updated_at", "2018-12-05 16:35:00.347905"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.352253"], ["updated_at", "2018-12-05 16:35:00.352253"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:35:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:00.358904"], ["last_sign_in_at", "2018-12-05 16:35:00.358904"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:00.359969"], ["id", 3385]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2815", "user_id"=>"3385"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2815], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3385], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3385], ["room_id", 2815], ["created_at", "2018-12-05 16:35:00.372582"], ["updated_at", "2018-12-05 16:35:00.372582"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:35:00 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2815", "user_id"=>"3385"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3385], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2815], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3385], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3385], ["room_id", 2815], ["created_at", "2018-12-05 16:35:00.389005"], ["updated_at", "2018-12-05 16:35:00.389005"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.8ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2815], ["user_id", 3385], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$E0Tfu36zANoeSWRmVD1Oq.bFD6gnZkeg6EjZa1fE7oLeL7UzvkthG"], ["created_at", "2018-12-05 16:35:00.403693"], ["updated_at", "2018-12-05 16:35:00.403693"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.407955"], ["updated_at", "2018-12-05 16:35:00.407955"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:35:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:00.414026"], ["last_sign_in_at", "2018-12-05 16:35:00.414026"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:00.415039"], ["id", 3386]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2816", "user_id"=>"3386"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2816], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3386], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3386], ["room_id", 2816], ["created_at", "2018-12-05 16:35:00.425851"], ["updated_at", "2018-12-05 16:35:00.425851"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:35:00 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2816", "user_id"=>"3386"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3386], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2816], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3386], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3386], ["room_id", 2816], ["created_at", "2018-12-05 16:35:00.441388"], ["updated_at", "2018-12-05 16:35:00.441388"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.7ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2816], ["user_id", 3386], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8Z3He5fcj5s.eiWNW.56uu3gJfxLlUuXb0USj75ENwepFPFywLD26"], ["created_at", "2018-12-05 16:35:00.454736"], ["updated_at", "2018-12-05 16:35:00.454736"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.458847"], ["updated_at", "2018-12-05 16:35:00.458847"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:35:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:00.464253"], ["last_sign_in_at", "2018-12-05 16:35:00.464253"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:00.465815"], ["id", 3387]]
 (0.7ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2817"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2817], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VSwJpRehBG2GcUDgUvl4..tksKdDRB63OYedT0xktvRsZTOF.F/2q"], ["created_at", "2018-12-05 16:35:00.485814"], ["updated_at", "2018-12-05 16:35:00.485814"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.489723"], ["updated_at", "2018-12-05 16:35:00.489723"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:35:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:00.494158"], ["last_sign_in_at", "2018-12-05 16:35:00.494158"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:00.495197"], ["id", 3388]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2818"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HsAE9ZdioXcp1/CBO5a1Zuz4fPuZIAuBcj9htWUJWqPxvAA0JcWFy"], ["created_at", "2018-12-05 16:35:00.515376"], ["updated_at", "2018-12-05 16:35:00.515376"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.520063"], ["updated_at", "2018-12-05 16:35:00.520063"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2819], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3389], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3389], ["room_id", 2819], ["created_at", "2018-12-05 16:35:00.528438"], ["updated_at", "2018-12-05 16:35:00.528438"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2819” for 127.0.0.1 at 2018-12-05 14:35:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:00.533024"], ["last_sign_in_at", "2018-12-05 16:35:00.533024"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:00.534015"], ["id", 3389]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2819"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2819], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2819')
Rendered appointments/show.html.erb within layouts/application (13.6ms)
Rendered layouts/_header-user.html.erb (2.9ms)

Completed 200 OK in 226ms (Views: 221.1ms | ActiveRecord: 1.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$X3gpE6KOwTuTV0sb5/BPcuoX3rqK.Ifo9luWOOjkZYcIfOxxukXXu"], ["created_at", "2018-12-05 16:35:00.774090"], ["updated_at", "2018-12-05 16:35:00.774090"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.779192"], ["updated_at", "2018-12-05 16:35:00.779192"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2820], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3390], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3390], ["room_id", 2820], ["created_at", "2018-12-05 16:35:00.787090"], ["updated_at", "2018-12-05 16:35:00.787090"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2711/edit” for 127.0.0.1 at 2018-12-05 14:35:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:00.791485"], ["last_sign_in_at", "2018-12-05 16:35:00.791485"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:00.792426"], ["id", 3390]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2711"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2711], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oabzBp4L.pC2pxuiOF2O7u6XHLswHvyvR4OxYAnfSATjzK2I124nK"], ["created_at", "2018-12-05 16:35:00.819041"], ["updated_at", "2018-12-05 16:35:00.819041"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 14:35:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:00.823234"], ["last_sign_in_at", "2018-12-05 16:35:00.823234"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:00.824328"], ["id", 3391]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (5.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oXl0nwj4anO5W0lfFrs/uuoJlEHffaOhtg23xPnf7GW.U7hPoC.Im"], ["created_at", "2018-12-05 16:35:00.851895"], ["updated_at", "2018-12-05 16:35:00.851895"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.855699"], ["updated_at", "2018-12-05 16:35:00.855699"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2821], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3392], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3392], ["room_id", 2821], ["created_at", "2018-12-05 16:35:00.863474"], ["updated_at", "2018-12-05 16:35:00.863474"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2821], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3392], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3392], ["room_id", 2821], ["created_at", "2018-12-05 16:35:00.871918"], ["updated_at", "2018-12-05 16:35:00.871918"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 14:35:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:00.876387"], ["last_sign_in_at", "2018-12-05 16:35:00.876387"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:00.877491"], ["id", 3392]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3392]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.8ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 20ms (Views: 10.2ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cQDAI3Y3yNHP3T6nyyWnU.7wbzAs2x/c7xgVJhw9m3/9V1/lKg2TK"], ["created_at", "2018-12-05 16:35:00.912184"], ["updated_at", "2018-12-05 16:35:00.912184"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.916410"], ["updated_at", "2018-12-05 16:35:00.916410"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2822], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3393], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3393], ["room_id", 2822], ["created_at", "2018-12-05 16:35:00.927538"], ["updated_at", "2018-12-05 16:35:00.927538"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2822], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3393], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3393], ["room_id", 2822], ["created_at", "2018-12-05 16:35:00.937108"], ["updated_at", "2018-12-05 16:35:00.937108"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 14:35:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:00.941079"], ["last_sign_in_at", "2018-12-05 16:35:00.941079"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:00.942104"], ["id", 3393]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3393]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$01CliZRX6Wi.NgTA06sLOeuxvi/uitCLfzhMKpr2juYpuoKnhuVD."], ["created_at", "2018-12-05 16:35:00.967325"], ["updated_at", "2018-12-05 16:35:00.967325"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:00.972147"], ["updated_at", "2018-12-05 16:35:00.972147"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2823], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3394], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3394], ["room_id", 2823], ["created_at", "2018-12-05 16:35:00.980885"], ["updated_at", "2018-12-05 16:35:00.980885"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2716” for 127.0.0.1 at 2018-12-05 14:35:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:00.985474"], ["last_sign_in_at", "2018-12-05 16:35:00.985474"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:00.986538"], ["id", 3394]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2716"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2716], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2716]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.8ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EW1VT68kalkKVsVCP5fQ5uvWnRXCzkGUEU0A3rT.Gc4KWik4/xSkS"], ["created_at", "2018-12-05 16:35:01.010491"], ["updated_at", "2018-12-05 16:35:01.010491"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.015421"], ["updated_at", "2018-12-05 16:35:01.015421"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hGGZ2ccjNnEPDwYFDdJzBOLBIZs5MCyWVRqiAZlGqbzZxSjO0UO/6"], ["created_at", "2018-12-05 16:35:01.022415"], ["updated_at", "2018-12-05 16:35:01.022415"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2824], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3396], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3396], ["room_id", 2824], ["created_at", "2018-12-05 16:35:01.031012"], ["updated_at", "2018-12-05 16:35:01.031012"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2717” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.036172"], ["last_sign_in_at", "2018-12-05 16:35:01.036172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.037282"], ["id", 3395]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2717"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2717], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2824], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3396], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.8ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$x.d7DIbrJiZJSpeDaBt1e.uw7sBNn8/ix8mEvXDgcEJgbEtYF2Iuy"], ["created_at", "2018-12-05 16:35:01.061694"], ["updated_at", "2018-12-05 16:35:01.061694"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.067898"], ["updated_at", "2018-12-05 16:35:01.067898"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OgCWUOYVJSIrOd8TPHvatuohaFOEUkE9ZnyhD3oNgtbD9Ki1OAmNq"], ["created_at", "2018-12-05 16:35:01.077825"], ["updated_at", "2018-12-05 16:35:01.077825"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2825], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3398], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3398], ["room_id", 2825], ["created_at", "2018-12-05 16:35:01.086204"], ["updated_at", "2018-12-05 16:35:01.086204"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2718” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.091295"], ["last_sign_in_at", "2018-12-05 16:35:01.091295"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.092320"], ["id", 3397]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2718"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2718], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2825], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3398], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 7ms (ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$djbvO41c2MUgePmgO4cwIup.DqdKtHuPKypmRsdYRy/LUwyYKtC1q"], ["created_at", "2018-12-05 16:35:01.113219"], ["updated_at", "2018-12-05 16:35:01.113219"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.117054"], ["updated_at", "2018-12-05 16:35:01.117054"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4E9dENMgG4jjX2nG.4x/Gej7JDTlOc4Jsw11Tqrx43h5DpsETKUAC"], ["created_at", "2018-12-05 16:35:01.125923"], ["updated_at", "2018-12-05 16:35:01.125923"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2826], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3400], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3400], ["room_id", 2826], ["created_at", "2018-12-05 16:35:01.135337"], ["updated_at", "2018-12-05 16:35:01.135337"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2719” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.140585"], ["last_sign_in_at", "2018-12-05 16:35:01.140585"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.141707"], ["id", 3399]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2719"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2719], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2826], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3400], ["LIMIT", 1]]
SQL (0.8ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-05 16:35:01.154132"], ["id", 2719]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (5.9ms) Date: Wed, 05 Dec 2018 14:35:01 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c07fe35281ff_1175109af14567a4@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c07fe3527319_1175109af14566bf";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c07fe3527319_1175109af14566bf Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c07fe3527319_1175109af14566bf Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c07fe3527319_1175109af14566bf–

Completed 302 Found in 22ms (ActiveRecord: 2.8ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v1fRJkGjxTgMJJE8cdfq0ee0QWcdM6h4MY3.JL8hblVRZQSO.NdXi"], ["created_at", "2018-12-05 16:35:01.180003"], ["updated_at", "2018-12-05 16:35:01.180003"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.184471"], ["updated_at", "2018-12-05 16:35:01.184471"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ovyf.G/BsPGJKFWRZzovK.cfKhCXG2nKiVPbwNnfUmHeOK23s3u6y"], ["created_at", "2018-12-05 16:35:01.191722"], ["updated_at", "2018-12-05 16:35:01.191722"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2827], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3402], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3402], ["room_id", 2827], ["created_at", "2018-12-05 16:35:01.199542"], ["updated_at", "2018-12-05 16:35:01.199542"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 16:35:01.203737"], ["id", 2720]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2827], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3402], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3402], ["room_id", 2827], ["created_at", "2018-12-05 16:35:01.210820"], ["updated_at", "2018-12-05 16:35:01.210820"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 16:35:01.214697"], ["id", 2721]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.218426"], ["last_sign_in_at", "2018-12-05 16:35:01.218426"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.219341"], ["id", 3401]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3402], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2827], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3402], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2827], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (9.8ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 20ms (Views: 15.1ms | ActiveRecord: 2.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3xolnJfPHeqnHRPTUIV5zeTktjbglnv7F3SY8nZVknBKjOiTzB41m"], ["created_at", "2018-12-05 16:35:01.252173"], ["updated_at", "2018-12-05 16:35:01.252173"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.256209"], ["updated_at", "2018-12-05 16:35:01.256209"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ueSQzUGaHfuaH2WmdJD.0.B38rTit9HM2yPLoTw5eeG0TjNShJssy"], ["created_at", "2018-12-05 16:35:01.264036"], ["updated_at", "2018-12-05 16:35:01.264036"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2828], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3404], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3404], ["room_id", 2828], ["created_at", "2018-12-05 16:35:01.272401"], ["updated_at", "2018-12-05 16:35:01.272401"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 16:35:01.276798"], ["id", 2722]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2828], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3404], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3404], ["room_id", 2828], ["created_at", "2018-12-05 16:35:01.284972"], ["updated_at", "2018-12-05 16:35:01.284972"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 16:35:01.288935"], ["id", 2723]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.293220"], ["last_sign_in_at", "2018-12-05 16:35:01.293220"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.294370"], ["id", 3403]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3404], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2828], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3404], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2828], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.2ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3SLMCxbXs3FMoJDkztEpNOamBNQcqCxKQdKyVex.sCvDCL.J5PlzK"], ["created_at", "2018-12-05 16:35:01.324320"], ["updated_at", "2018-12-05 16:35:01.324320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.328339"], ["last_sign_in_at", "2018-12-05 16:35:01.328339"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.329562"], ["id", 3405]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (6.5ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 14ms (Views: 12.1ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q69M.fc5e1czk6XOdQd5x.a7Ud04dF5qxhw5wrcQz2jhvjTx0uGTa"], ["created_at", "2018-12-05 16:35:01.361845"], ["updated_at", "2018-12-05 16:35:01.361845"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.365845"], ["last_sign_in_at", "2018-12-05 16:35:01.365845"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.366745"], ["id", 3406]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yq8zOuDb9yr.CXTtMUi6EeisNAt2nAA5H6CGS4i6a15VjoSSd3zpS"], ["created_at", "2018-12-05 16:35:01.381367"], ["updated_at", "2018-12-05 16:35:01.381367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.385712"], ["last_sign_in_at", "2018-12-05 16:35:01.385712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.386729"], ["id", 3407]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cYWlQq0U/f7kHP0m8Qh24ODG2AXBGOzrEmcCDWoclWVXbn76WLqpC"], ["created_at", "2018-12-05 16:35:01.410107"], ["updated_at", "2018-12-05 16:35:01.410107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.414308"], ["last_sign_in_at", "2018-12-05 16:35:01.414308"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.415167"], ["id", 3408]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 14:35:01 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$84tj.M01ixsUVutIL4w.euCh8avTPs0CApUusdE.rsaDEKvywux42"], ["created_at", "2018-12-05 16:35:01.449946"], ["updated_at", "2018-12-05 16:35:01.449946"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.455565"], ["updated_at", "2018-12-05 16:35:01.455565"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2829” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (1.1ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.461005"], ["last_sign_in_at", "2018-12-05 16:35:01.461005"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.462406"], ["id", 3409]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2829"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2829], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (2.6ms)

Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2F.r0Fm2OSEbBdsQHFaZD.oyViVc2tcXHKXdau.ckAeRZ9v1lqdIi"], ["created_at", "2018-12-05 16:35:01.492065"], ["updated_at", "2018-12-05 16:35:01.492065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.497640"], ["updated_at", "2018-12-05 16:35:01.497640"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2830” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.502710"], ["last_sign_in_at", "2018-12-05 16:35:01.502710"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.504029"], ["id", 3410]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2830"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2830], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.523300"], ["updated_at", "2018-12-05 16:35:01.523300"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2831” for 127.0.0.1 at 2018-12-05 14:35:01 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2831"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O5aYfgQUAdNSE2.qAmNa4e6gDDr.smP3pUibZB5yMJ5GhnAV/iSYy"], ["created_at", "2018-12-05 16:35:01.539210"], ["updated_at", "2018-12-05 16:35:01.539210"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.544220"], ["updated_at", "2018-12-05 16:35:01.544220"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2832” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.548153"], ["last_sign_in_at", "2018-12-05 16:35:01.548153"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.549146"], ["id", 3411]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2832"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.569570"], ["updated_at", "2018-12-05 16:35:01.569570"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2833” for 127.0.0.1 at 2018-12-05 14:35:01 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2833"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XdqI0w0TbqhA3dXW1BFD7eEYPSUzcW7ve9ePQdMalxNwxLMvpMoXy"], ["created_at", "2018-12-05 16:35:01.585480"], ["updated_at", "2018-12-05 16:35:01.585480"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.589780"], ["updated_at", "2018-12-05 16:35:01.589780"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2834/edit” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.593747"], ["last_sign_in_at", "2018-12-05 16:35:01.593747"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.594776"], ["id", 3412]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2834"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2834], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.9ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yd3LDcZZWxuH0EpShmyWDu6IY2JPsOTxWLTBd1lzD6I3nA0Zk3Cn2"], ["created_at", "2018-12-05 16:35:01.620593"], ["updated_at", "2018-12-05 16:35:01.620593"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.624742"], ["updated_at", "2018-12-05 16:35:01.624742"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2835/edit” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.628682"], ["last_sign_in_at", "2018-12-05 16:35:01.628682"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.629720"], ["id", 3413]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2835"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2835], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.650685"], ["updated_at", "2018-12-05 16:35:01.650685"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2836” for 127.0.0.1 at 2018-12-05 14:35:01 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2836"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PzfMw470MycNRaSid.PRa.bCThN/8KuYtqhmiTAdDCCVWZ2iqFNQG"], ["created_at", "2018-12-05 16:35:01.666116"], ["updated_at", "2018-12-05 16:35:01.666116"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.672166"], ["last_sign_in_at", "2018-12-05 16:35:01.672166"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.673203"], ["id", 3414]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.679825"], ["updated_at", "2018-12-05 16:35:01.679825"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gRUKuPMzbJ2UHhh1zHU83e4YcmeMoxo6Xv/NIRzbP8jYlMMVBD4JK"], ["created_at", "2018-12-05 16:35:01.694954"], ["updated_at", "2018-12-05 16:35:01.694954"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.700662"], ["last_sign_in_at", "2018-12-05 16:35:01.700662"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.701899"], ["id", 3415]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.708319"], ["updated_at", "2018-12-05 16:35:01.708319"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ftW7T8Bo4WOTpfVF5nkFmu4fg3VbNoUoYWWQ6vhAYVqTfY1CIC9D."], ["created_at", "2018-12-05 16:35:01.720978"], ["updated_at", "2018-12-05 16:35:01.720978"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.726320"], ["last_sign_in_at", "2018-12-05 16:35:01.726320"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.727377"], ["id", 3416]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rB6xCz67vlY5PRCvti6pAeej0qihI6WwWKLQIICtjGHdIFt4Ia82G"], ["created_at", "2018-12-05 16:35:01.747721"], ["updated_at", "2018-12-05 16:35:01.747721"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.753152"], ["last_sign_in_at", "2018-12-05 16:35:01.753152"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.754148"], ["id", 3417]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JSDzf02VUsCB1vyqiIhEzelY6vz898oHnziDIwhbB5tgC/Q/Ikpxa"], ["created_at", "2018-12-05 16:35:01.775895"], ["updated_at", "2018-12-05 16:35:01.775895"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.781657"], ["last_sign_in_at", "2018-12-05 16:35:01.781657"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.782564"], ["id", 3418]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9ox4uCzt2GQZIOOkIAuJIuB8UgDWV/1vnH3Au.pVPC.BpJ0RCfxZG"], ["created_at", "2018-12-05 16:35:01.796274"], ["updated_at", "2018-12-05 16:35:01.796274"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.800358"], ["updated_at", "2018-12-05 16:35:01.800358"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2839” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.804997"], ["last_sign_in_at", "2018-12-05 16:35:01.804997"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.805946"], ["id", 3419]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2839"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2839], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 16:35:01.813471"], ["id", 2839]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2839 Completed 302 Found in 6ms (ActiveRecord: 1.3ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oWqPR1Kk/sWUDpe0QUkpF.rP5dilZx5VQIwrRwbr1jwvLL99eJvsW"], ["created_at", "2018-12-05 16:35:01.830721"], ["updated_at", "2018-12-05 16:35:01.830721"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.835952"], ["updated_at", "2018-12-05 16:35:01.835952"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2840” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.840329"], ["last_sign_in_at", "2018-12-05 16:35:01.840329"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.841261"], ["id", 3420]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2840"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2840], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 16:35:01.848761"], ["id", 2840]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2840 Completed 302 Found in 7ms (ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u44lhQ7CiKpMxmlxsl2GLuJp6XRRIkxu1PJS.4q2r7LfoHrrZSgR6"], ["created_at", "2018-12-05 16:35:01.861598"], ["updated_at", "2018-12-05 16:35:01.861598"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.866103"], ["updated_at", "2018-12-05 16:35:01.866103"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2841” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.871322"], ["last_sign_in_at", "2018-12-05 16:35:01.871322"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.872443"], ["id", 3421]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2841"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2841], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 1.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9QYWnSKmmpQNM848dSmgkeajzb57Mzbzbh7ZU/5n7mXDWE0Xwh.lW"], ["created_at", "2018-12-05 16:35:01.901570"], ["updated_at", "2018-12-05 16:35:01.901570"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.906017"], ["updated_at", "2018-12-05 16:35:01.906017"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2842” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.910774"], ["last_sign_in_at", "2018-12-05 16:35:01.910774"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.911888"], ["id", 3422]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2842"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2842], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 1.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ol.Yg.WXk1fuJE7kJ.qeWO4Gk6wC7ro1vcJV/Zcui.VN6mc4CZHvm"], ["created_at", "2018-12-05 16:35:01.939389"], ["updated_at", "2018-12-05 16:35:01.939389"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.944785"], ["last_sign_in_at", "2018-12-05 16:35:01.944785"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.945875"], ["id", 3423]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D9IWsUFYPl6N1jI3wq1T2.6UZPJsch8pd6xOvweSco.m4AzTweAHu"], ["created_at", "2018-12-05 16:35:01.961302"], ["updated_at", "2018-12-05 16:35:01.961302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.965763"], ["updated_at", "2018-12-05 16:35:01.965763"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2843” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.969505"], ["last_sign_in_at", "2018-12-05 16:35:01.969505"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.970484"], ["id", 3424]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2843"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2843], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2843]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8t08XMtzr200n.Afdj6W/OEltwxBxvc5ETXBZLvuP4lvmFW.El7gS"], ["created_at", "2018-12-05 16:35:01.989729"], ["updated_at", "2018-12-05 16:35:01.989729"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:01.994142"], ["updated_at", "2018-12-05 16:35:01.994142"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2844” for 127.0.0.1 at 2018-12-05 14:35:01 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:01.997910"], ["last_sign_in_at", "2018-12-05 16:35:01.997910"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:01.998779"], ["id", 3425]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2844"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2844], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2844]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6Ooy0/hiclKVlJN64BIqK.lpqQL9wd3qweMsLcyCDkOTYeM8GMjL."], ["created_at", "2018-12-05 16:35:02.017062"], ["updated_at", "2018-12-05 16:35:02.017062"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:02.021112"], ["updated_at", "2018-12-05 16:35:02.021112"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2845” for 127.0.0.1 at 2018-12-05 14:35:02 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:02.025475"], ["last_sign_in_at", "2018-12-05 16:35:02.025475"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:02.026642"], ["id", 3426]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2845"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zGce.DKUyljMGc4rq//96euRXjomhYJjmMdpk2YfTAysgsr6XIQEG"], ["created_at", "2018-12-05 16:35:02.042816"], ["updated_at", "2018-12-05 16:35:02.042816"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:02.047229"], ["updated_at", "2018-12-05 16:35:02.047229"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2846” for 127.0.0.1 at 2018-12-05 14:35:02 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:02.051232"], ["last_sign_in_at", "2018-12-05 16:35:02.051232"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:02.052436"], ["id", 3427]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2846"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7hf7GgYnk1zFvng2pPz3fup4nhHoNHaHlxYDz5.9Zum486ACxNoJe"], ["created_at", "2018-12-05 16:35:02.068354"], ["updated_at", "2018-12-05 16:35:02.068354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 14:35:02 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:02.074573"], ["last_sign_in_at", "2018-12-05 16:35:02.074573"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:02.075914"], ["id", 3428]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4g8OCjMjQXcFi2lBmpZOk.BeZ9pjGVgI7019yc5vzTZuWWmK/EHdu"], ["created_at", "2018-12-05 16:35:02.106107"], ["updated_at", "2018-12-05 16:35:02.106107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:02.110869"], ["updated_at", "2018-12-05 16:35:02.110869"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:02.115359"], ["updated_at", "2018-12-05 16:35:02.115359"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:02.119455"], ["updated_at", "2018-12-05 16:35:02.119455"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.6ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2847], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3429], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3429], ["room_id", 2847], ["created_at", "2018-12-05 16:35:02.129166"], ["updated_at", "2018-12-05 16:35:02.129166"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-05 14:35:02 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:02.134334"], ["last_sign_in_at", "2018-12-05 16:35:02.134334"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:02.135458"], ["id", 3429]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.6ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 25ms (Views: 8.6ms | ActiveRecord: 2.2ms)

Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.8ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TVG3MFq9udQTgpAncJJCtu8YXKS5Ki.WYMqjrkzLgOhIZdbFzuDtO"], ["created_at", "2018-12-05 16:35:02.179764"], ["updated_at", "2018-12-05 16:35:02.179764"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:02.184961"], ["updated_at", "2018-12-05 16:35:02.184961"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:02.189204"], ["updated_at", "2018-12-05 16:35:02.189204"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:35:02.193034"], ["updated_at", "2018-12-05 16:35:02.193034"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2850], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3430], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3430], ["room_id", 2850], ["created_at", "2018-12-05 16:35:02.202098"], ["updated_at", "2018-12-05 16:35:02.202098"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-05 14:35:02 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:35:02.207019"], ["last_sign_in_at", "2018-12-05 16:35:02.207019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:35:02.208076"], ["id", 3430]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.6ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (3.6ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l.ns7rCYnanmSXz8Hzauju.ectwGy1eDBNPw5emdEx9AMrRXsrrb6"], ["created_at", "2018-12-05 16:52:32.371985"], ["updated_at", "2018-12-05 16:52:32.371985"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uuXQkVnQ1Mz9JPyKp0PZvOSMNtRKB0ghvVDI2CVWbhZhX2ItNcKqu"], ["created_at", "2018-12-05 16:52:32.380260"], ["updated_at", "2018-12-05 16:52:32.380260"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:32.401023"], ["updated_at", "2018-12-05 16:52:32.401023"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2853], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3432], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3432], ["room_id", 2853], ["created_at", "2018-12-05 16:52:32.445948"], ["updated_at", "2018-12-05 16:52:32.445948"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2726"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2726], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.9ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2853], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3432], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.4ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.5ms)

UserMailer#status_notification: processed outbound mail in 369.4ms Sent mail to 123@123.com (13.9ms) Date: Wed, 05 Dec 2018 14:52:32 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c080250cf429_1416ddef144684a@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c080250cca17_1416ddef1446758";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c080250cca17_1416ddef1446758 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c080250cca17_1416ddef1446758 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c080250cca17_1416ddef1446758–

Completed 302 Found in 397ms (ActiveRecord: 2.8ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FQz1sujGrnMyhkdPWAhSbOzKqagk.rR.b1onizwjvXjTTeujESlqS"], ["created_at", "2018-12-05 16:52:32.869640"], ["updated_at", "2018-12-05 16:52:32.869640"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.mXq/baF/GUPZj0vfCvJ8.PjZHIiyUU/TswkhA.TKDXKnBBWtMhwW"], ["created_at", "2018-12-05 16:52:32.878190"], ["updated_at", "2018-12-05 16:52:32.878190"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:32.882439"], ["updated_at", "2018-12-05 16:52:32.882439"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2854], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3434], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3434], ["room_id", 2854], ["created_at", "2018-12-05 16:52:32.891175"], ["updated_at", "2018-12-05 16:52:32.891175"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2727"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2727], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2854], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3434], ["LIMIT", 1]]
SQL (0.8ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-05 16:52:32.903500"], ["id", 2727]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.3ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.2ms)

UserMailer#status_notification: processed outbound mail in 6.5ms Sent mail to 123@123.com (7.2ms) Date: Wed, 05 Dec 2018 14:52:32 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c080250e02e8_1416ddef14470d9@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c080250def92_1416ddef1446985";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c080250def92_1416ddef1446985 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c080250def92_1416ddef1446985 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c080250def92_1416ddef1446985–

Completed 302 Found in 28ms (ActiveRecord: 3.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xQpaQA/m4GNQFJht/dHgceal4yqtJ470dH2T2CN9IDjaOnSMjNjcu"], ["created_at", "2018-12-05 16:52:32.933133"], ["updated_at", "2018-12-05 16:52:32.933133"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$z1OBaIsvw0loCHYI9s7UCOreseptFGJ3wtmns1jmehXWRbsmXkp3u"], ["created_at", "2018-12-05 16:52:32.940552"], ["updated_at", "2018-12-05 16:52:32.940552"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:32.944241"], ["updated_at", "2018-12-05 16:52:32.944241"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2855], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3436], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3436], ["room_id", 2855], ["created_at", "2018-12-05 16:52:32.951467"], ["updated_at", "2018-12-05 16:52:32.951467"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l3JgU0mozZMkzYoTCpbpjOtgshVMochYscCvmVdw3DLYo1sYUp6s6"], ["created_at", "2018-12-05 16:52:32.967803"], ["updated_at", "2018-12-05 16:52:32.967803"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lVbXaMC8e5xUI4UYLPI43e02z1VjsoisckZrLI3zbkdKa/OvsnrI."], ["created_at", "2018-12-05 16:52:32.975252"], ["updated_at", "2018-12-05 16:52:32.975252"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:32.978942"], ["updated_at", "2018-12-05 16:52:32.978942"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2856], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3438], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3438], ["room_id", 2856], ["created_at", "2018-12-05 16:52:32.986777"], ["updated_at", "2018-12-05 16:52:32.986777"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2729], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$8si0yqTpd8lmluknFFcA6eBbPFrIMWOZL.UTfcVTjOoAAxud0U0Va"], ["created_at", "2018-12-05 16:52:32.999383"], ["updated_at", "2018-12-05 16:52:32.999383"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3439"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "hjC2kOKKEsH5iGa5w0vP7Q"], ["updated_at", "2018-12-05 16:52:33.008048"], ["id", 3439]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-05 16:52:33.011702"], ["reset_sent_at", "2018-12-05 16:52:33.010992"], ["id", 3439]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)

UserMailer#password_reset: processed outbound mail in 10.4ms Sent mail to teste@unb.com.br (6.3ms) Date: Wed, 05 Dec 2018 14:52:33 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c0802516953_1416ddef14473af@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0802515985_1416ddef14472c1";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0802515985_1416ddef14472c1 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/hjC2kOKKEsH5iGa5w0vP7Q/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c0802515985_1416ddef14472c1 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/hjC2kOKKEsH5iGa5w0vP7Q/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c0802515985_1416ddef14472c1–

Redirected to test.host/login Completed 302 Found in 28ms (ActiveRecord: 2.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$BSfnLeCiu5csUcUzi7msdexWcmZvrQdFjvv8kO0UjuPoE6BXebqBa"], ["created_at", "2018-12-05 16:52:33.039925"], ["updated_at", "2018-12-05 16:52:33.039925"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.6ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$rtJOUhwgP4GoxPppkSk2LuoY8EujwV/VyJ4Zl2aL8KCEB914EVtc2"], ["created_at", "2018-12-05 16:52:33.057680"], ["updated_at", "2018-12-05 16:52:33.057680"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3441"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$Md/1TUi/81mBWS/pFyyA5ek6IrLZ/SE6XeUTCd8JehZZ3cl3WhOmy"], ["updated_at", "2018-12-05 16:52:33.066457"], ["id", 3441]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 8ms (ActiveRecord: 1.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$OxbL1fjKrjcnHScGtmn5EONLziQJFufhdtlm/PYqBHq81qbd3Rw0e"], ["created_at", "2018-12-05 16:52:33.077732"], ["updated_at", "2018-12-05 16:52:33.077732"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3442"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$0HGfOVOYh/ucVLzJi7U7gOwH3AukEHth1dMdT/QKOdSwJAdGlG2ZK"], ["created_at", "2018-12-05 16:52:33.097578"], ["updated_at", "2018-12-05 16:52:33.097578"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3443"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 18ms (Views: 2.0ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$1Ju4J3S39PNJwMwA0esO6uoZyj/27LGLVRf2xmHim6oGdoLQmgsfW"], ["created_at", "2018-12-05 16:52:33.128027"], ["updated_at", "2018-12-05 16:52:33.128027"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3444"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 7ms (Views: 0.9ms | ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$9leds0ov4kpcn4lg5keC4udzc9L6lmcaWUchD38LabAYKLi5TEsgm"], ["created_at", "2018-12-05 16:52:33.146950"], ["updated_at", "2018-12-05 16:52:33.146950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3445"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$g50tZMymYRpephxoyQD15Ors9OOoYOSFo0K52ElwTvkzNVB9a3ml6"], ["created_at", "2018-12-05 16:52:33.165111"], ["updated_at", "2018-12-05 16:52:33.165111"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.7ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$55.CMVIMshUAHqAJnG3mEee3ugMsHEfIoIvY64FwB2ZDzsFiPFb8q"], ["created_at", "2018-12-05 16:52:33.182238"], ["updated_at", "2018-12-05 16:52:33.182238"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.5ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/tUibJ68Q3p9vgj7tvMd.e73GnpHvPhboJY.laASnbCNXdA/x1Elm"], ["created_at", "2018-12-05 16:52:33.199615"], ["updated_at", "2018-12-05 16:52:33.199615"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:33.203434"], ["updated_at", "2018-12-05 16:52:33.203434"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2857], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3448], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3448], ["room_id", 2857], ["created_at", "2018-12-05 16:52:33.210525"], ["updated_at", "2018-12-05 16:52:33.210525"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cwIiabhqXNyI9lMGAjnmrObsTEsL/UTUKGYtXI5X1OiRfXtTNhv4K"], ["created_at", "2018-12-05 16:52:33.226888"], ["updated_at", "2018-12-05 16:52:33.226888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:33.230603"], ["updated_at", "2018-12-05 16:52:33.230603"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2858], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3449], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3449], ["room_id", 2858], ["created_at", "2018-12-05 16:52:33.237161"], ["updated_at", "2018-12-05 16:52:33.237161"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.6ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UD4YUXA77CW1e8A7vo5hCuhlY/y7rbpQjuXlCJB77sLry5IjOF5Xy"], ["created_at", "2018-12-05 16:52:33.304673"], ["updated_at", "2018-12-05 16:52:33.304673"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:33.309084"], ["updated_at", "2018-12-05 16:52:33.309084"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:52:33 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:33.323308"], ["last_sign_in_at", "2018-12-05 16:52:33.323308"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:33.324650"], ["id", 3450]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2859"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2859], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3450], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3450], ["room_id", 2859], ["created_at", "2018-12-05 16:52:33.344344"], ["updated_at", "2018-12-05 16:52:33.344344"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2859], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5fhyP8Y7VEt.353J8BBR6.R/XAUkaq40WEYrocT4nkXph51wMEPu6"], ["created_at", "2018-12-05 16:52:33.359454"], ["updated_at", "2018-12-05 16:52:33.359454"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:33.363923"], ["updated_at", "2018-12-05 16:52:33.363923"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:52:33 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:33.369179"], ["last_sign_in_at", "2018-12-05 16:52:33.369179"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:33.370151"], ["id", 3451]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2860"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2860], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3451], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3451], ["room_id", 2860], ["created_at", "2018-12-05 16:52:33.381417"], ["updated_at", "2018-12-05 16:52:33.381417"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Hbi73d2WEH22cd9tjReceuPdowOyZ83RS3A2fpHS/cNxpQ5Gmr/m2"], ["created_at", "2018-12-05 16:52:33.394295"], ["updated_at", "2018-12-05 16:52:33.394295"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:33.398529"], ["updated_at", "2018-12-05 16:52:33.398529"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:52:33 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:33.404192"], ["last_sign_in_at", "2018-12-05 16:52:33.404192"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:33.405146"], ["id", 3452]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2861", "user_id"=>"3452"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2861], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3452], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3452], ["room_id", 2861], ["created_at", "2018-12-05 16:52:33.417187"], ["updated_at", "2018-12-05 16:52:33.417187"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:52:33 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2861", "user_id"=>"3452"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3452], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2861], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3452], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3452], ["room_id", 2861], ["created_at", "2018-12-05 16:52:33.435797"], ["updated_at", "2018-12-05 16:52:33.435797"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 15ms (ActiveRecord: 3.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DgTeMYnU692GgxKh4Nd.Cub.Vnkm47hSME0b8T4t2aPsk4jssBu8G"], ["created_at", "2018-12-05 16:52:33.450505"], ["updated_at", "2018-12-05 16:52:33.450505"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:33.454917"], ["updated_at", "2018-12-05 16:52:33.454917"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:52:33 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:33.461648"], ["last_sign_in_at", "2018-12-05 16:52:33.461648"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:33.462846"], ["id", 3453]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2862", "user_id"=>"3453"}
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2862], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3453], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3453], ["room_id", 2862], ["created_at", "2018-12-05 16:52:33.476518"], ["updated_at", "2018-12-05 16:52:33.476518"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:52:33 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2862", "user_id"=>"3453"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3453], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2862], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3453], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3453], ["room_id", 2862], ["created_at", "2018-12-05 16:52:33.493603"], ["updated_at", "2018-12-05 16:52:33.493603"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.6ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2862], ["user_id", 3453], ["status", 2], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ylLVQiUdAobd1bMfwlHYR.9jbir8JetkXVeg9zUYq.XDmG5LZQs0m"], ["created_at", "2018-12-05 16:52:33.509354"], ["updated_at", "2018-12-05 16:52:33.509354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:33.514097"], ["updated_at", "2018-12-05 16:52:33.514097"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:52:33 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:33.520154"], ["last_sign_in_at", "2018-12-05 16:52:33.520154"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:33.521295"], ["id", 3454]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2863", "user_id"=>"3454"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2863], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3454], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3454], ["room_id", 2863], ["created_at", "2018-12-05 16:52:33.533180"], ["updated_at", "2018-12-05 16:52:33.533180"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.6ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:52:33 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2863", "user_id"=>"3454"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3454], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2863], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3454], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3454], ["room_id", 2863], ["created_at", "2018-12-05 16:52:33.550027"], ["updated_at", "2018-12-05 16:52:33.550027"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.5ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2863], ["user_id", 3454], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vBmZ28IQDUwrTTPCI8vrhOl5CXbIF8ERIMLAfR/4k/MyYIswYAPZa"], ["created_at", "2018-12-05 16:52:33.565273"], ["updated_at", "2018-12-05 16:52:33.565273"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:33.569609"], ["updated_at", "2018-12-05 16:52:33.569609"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:52:33 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:33.574573"], ["last_sign_in_at", "2018-12-05 16:52:33.574573"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:33.575692"], ["id", 3455]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2864"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2864], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GDxUSBB6euGuH6UV0YAEAOgz9.m9BwRK3gBJYvdItf6/e80LVyfQa"], ["created_at", "2018-12-05 16:52:33.593795"], ["updated_at", "2018-12-05 16:52:33.593795"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:33.598934"], ["updated_at", "2018-12-05 16:52:33.598934"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 14:52:33 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:33.603840"], ["last_sign_in_at", "2018-12-05 16:52:33.603840"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:33.604853"], ["id", 3456]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2865"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ioISsK8Oc0LzqyZ6l3kJ2OCve.hLYKUX7ocrAcPSnLEjD4ih1S136"], ["created_at", "2018-12-05 16:52:33.621545"], ["updated_at", "2018-12-05 16:52:33.621545"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:33.625700"], ["updated_at", "2018-12-05 16:52:33.625700"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2866], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3457], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3457], ["room_id", 2866], ["created_at", "2018-12-05 16:52:33.635376"], ["updated_at", "2018-12-05 16:52:33.635376"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2866” for 127.0.0.1 at 2018-12-05 14:52:33 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:33.640519"], ["last_sign_in_at", "2018-12-05 16:52:33.640519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:33.641541"], ["id", 3457]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2866"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2866], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2866')
Rendered appointments/show.html.erb within layouts/application (13.4ms)
Rendered layouts/_header-user.html.erb (2.9ms)

Completed 200 OK in 222ms (Views: 218.1ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FO9XJRpirFXye/3ZeH6ewu3G4HJzE8dn4QAQi85CIYBYXmfDR1gOe"], ["created_at", "2018-12-05 16:52:33.877819"], ["updated_at", "2018-12-05 16:52:33.877819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:33.882495"], ["updated_at", "2018-12-05 16:52:33.882495"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2867], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3458], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3458], ["room_id", 2867], ["created_at", "2018-12-05 16:52:33.891549"], ["updated_at", "2018-12-05 16:52:33.891549"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2741/edit” for 127.0.0.1 at 2018-12-05 14:52:33 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:33.896283"], ["last_sign_in_at", "2018-12-05 16:52:33.896283"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:33.897333"], ["id", 3458]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2741"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2741], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (5.8ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 14ms (Views: 11.1ms | ActiveRecord: 0.7ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.dp2mdyeYs3VIVN6HB7WyOnZMRGVq9kFGjmneIs1h4xt8I30T4UTa"], ["created_at", "2018-12-05 16:52:33.928353"], ["updated_at", "2018-12-05 16:52:33.928353"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 14:52:33 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:33.933229"], ["last_sign_in_at", "2018-12-05 16:52:33.933229"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:33.934132"], ["id", 3459]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vqgpTUOgLJeD/Sv9JFZFpO0gNlbJtB70BsRxiZTj50YJSNRC1OlUy"], ["created_at", "2018-12-05 16:52:33.959359"], ["updated_at", "2018-12-05 16:52:33.959359"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:33.963400"], ["updated_at", "2018-12-05 16:52:33.963400"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2868], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3460], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3460], ["room_id", 2868], ["created_at", "2018-12-05 16:52:33.971000"], ["updated_at", "2018-12-05 16:52:33.971000"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2868], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3460], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3460], ["room_id", 2868], ["created_at", "2018-12-05 16:52:33.978874"], ["updated_at", "2018-12-05 16:52:33.978874"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 14:52:33 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:33.982979"], ["last_sign_in_at", "2018-12-05 16:52:33.982979"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:33.983942"], ["id", 3460]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3460]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.9ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 20ms (Views: 10.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZTwR2govzVuL34F1xgDuAOXWIwqGTfTUsf5PVTbtVs0.yCKUJ3i5S"], ["created_at", "2018-12-05 16:52:34.018557"], ["updated_at", "2018-12-05 16:52:34.018557"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.022671"], ["updated_at", "2018-12-05 16:52:34.022671"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2869], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3461], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3461], ["room_id", 2869], ["created_at", "2018-12-05 16:52:34.030483"], ["updated_at", "2018-12-05 16:52:34.030483"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2869], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3461], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3461], ["room_id", 2869], ["created_at", "2018-12-05 16:52:34.038509"], ["updated_at", "2018-12-05 16:52:34.038509"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.042866"], ["last_sign_in_at", "2018-12-05 16:52:34.042866"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.043866"], ["id", 3461]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3461]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UxCzu0d2QSmRYW7vkPYI/OpeYfjqnkRgc8pNjS7.yPeNys4B7gBHi"], ["created_at", "2018-12-05 16:52:34.067391"], ["updated_at", "2018-12-05 16:52:34.067391"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.072286"], ["updated_at", "2018-12-05 16:52:34.072286"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2870], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3462], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3462], ["room_id", 2870], ["created_at", "2018-12-05 16:52:34.080079"], ["updated_at", "2018-12-05 16:52:34.080079"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2746” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.085272"], ["last_sign_in_at", "2018-12-05 16:52:34.085272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.086705"], ["id", 3462]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2746"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2746], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2746]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 6ms (ActiveRecord: 1.9ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K8I6vha/DZYNw1djdfavFOHjvvQnRHaRLe4EnBNKx3C82Kf5SPV3q"], ["created_at", "2018-12-05 16:52:34.113929"], ["updated_at", "2018-12-05 16:52:34.113929"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.118831"], ["updated_at", "2018-12-05 16:52:34.118831"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$f0AtfOo8zFG9y6WuF/CUXu3Y5fDetUXWmgrW4QlqG5UzwoYZFknMC"], ["created_at", "2018-12-05 16:52:34.126808"], ["updated_at", "2018-12-05 16:52:34.126808"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2871], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3464], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3464], ["room_id", 2871], ["created_at", "2018-12-05 16:52:34.136429"], ["updated_at", "2018-12-05 16:52:34.136429"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2747” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.141865"], ["last_sign_in_at", "2018-12-05 16:52:34.141865"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.143014"], ["id", 3463]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2747"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2747], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2871], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3464], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 9ms (ActiveRecord: 2.1ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e43Uu1GHlySbnXeJiS0h2OxMlJ7WXz5a6Vr/HKcKTZFVa11prk28a"], ["created_at", "2018-12-05 16:52:34.170019"], ["updated_at", "2018-12-05 16:52:34.170019"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.175995"], ["updated_at", "2018-12-05 16:52:34.175995"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Fdhsw5Jwof7B3vzO5OV4wugyuzLMmrTDiUonexVg74JHUqIUgJhVu"], ["created_at", "2018-12-05 16:52:34.187294"], ["updated_at", "2018-12-05 16:52:34.187294"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2872], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3466], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3466], ["room_id", 2872], ["created_at", "2018-12-05 16:52:34.200014"], ["updated_at", "2018-12-05 16:52:34.200014"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2748” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.206813"], ["last_sign_in_at", "2018-12-05 16:52:34.206813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.208245"], ["id", 3465]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2748"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2748], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2872], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3466], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 12ms (ActiveRecord: 1.8ms)

 (0.7ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xsLxYiYPEO67FTUNXSbCdOezGBTTH9F1pbqdfs3wLUCDPG9YRzrTq"], ["created_at", "2018-12-05 16:52:34.238514"], ["updated_at", "2018-12-05 16:52:34.238514"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.243279"], ["updated_at", "2018-12-05 16:52:34.243279"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kbiyz8.JwFZSdQcTrLtu8.YeCKW6zk4f6jZKlkZm4KJKJmKJSUkhq"], ["created_at", "2018-12-05 16:52:34.250522"], ["updated_at", "2018-12-05 16:52:34.250522"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2873], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3468], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3468], ["room_id", 2873], ["created_at", "2018-12-05 16:52:34.258792"], ["updated_at", "2018-12-05 16:52:34.258792"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2749” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.264005"], ["last_sign_in_at", "2018-12-05 16:52:34.264005"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.265014"], ["id", 3467]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2749"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2749], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2873], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3468], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-05 16:52:34.275705"], ["id", 2749]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (5.8ms) Date: Wed, 05 Dec 2018 14:52:34 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c08025245be8_1416ddef1448057@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c08025244ccf_1416ddef1447942";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c08025244ccf_1416ddef1447942 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c08025244ccf_1416ddef1447942 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c08025244ccf_1416ddef1447942–

Completed 302 Found in 20ms (ActiveRecord: 1.9ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7ZcpfHQz0iAATLojJJgvW.nDC5W2IHrRFU6rjWxSeZId8powesaoi"], ["created_at", "2018-12-05 16:52:34.300062"], ["updated_at", "2018-12-05 16:52:34.300062"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.304186"], ["updated_at", "2018-12-05 16:52:34.304186"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xJceDyAuDMpThSHN9e.LM.i4AZ/yRSZCnChNO39prIQjdsUBdtD/u"], ["created_at", "2018-12-05 16:52:34.312726"], ["updated_at", "2018-12-05 16:52:34.312726"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2874], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3470], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3470], ["room_id", 2874], ["created_at", "2018-12-05 16:52:34.324869"], ["updated_at", "2018-12-05 16:52:34.324869"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 16:52:34.329778"], ["id", 2750]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2874], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3470], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3470], ["room_id", 2874], ["created_at", "2018-12-05 16:52:34.337863"], ["updated_at", "2018-12-05 16:52:34.337863"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 16:52:34.341923"], ["id", 2751]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.345889"], ["last_sign_in_at", "2018-12-05 16:52:34.345889"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.346924"], ["id", 3469]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3470], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2874], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3470], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2874], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.5ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 18ms (Views: 13.5ms | ActiveRecord: 2.1ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oq0uoeb4k1hWmVLc.eK03eOIxg/qgymWsy1TN7XdqGuSqk1zZuXby"], ["created_at", "2018-12-05 16:52:34.379543"], ["updated_at", "2018-12-05 16:52:34.379543"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.384428"], ["updated_at", "2018-12-05 16:52:34.384428"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XA7acG0eta2yfwJA.LFyveEeMzgU36tvovqXL.iomkoL7u2EIVz/q"], ["created_at", "2018-12-05 16:52:34.392205"], ["updated_at", "2018-12-05 16:52:34.392205"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2875], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3472], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3472], ["room_id", 2875], ["created_at", "2018-12-05 16:52:34.400969"], ["updated_at", "2018-12-05 16:52:34.400969"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 16:52:34.404899"], ["id", 2752]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2875], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3472], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3472], ["room_id", 2875], ["created_at", "2018-12-05 16:52:34.412509"], ["updated_at", "2018-12-05 16:52:34.412509"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 16:52:34.416241"], ["id", 2753]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.420172"], ["last_sign_in_at", "2018-12-05 16:52:34.420172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.421181"], ["id", 3471]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3472], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2875], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3472], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2875], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.3ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 2.0ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZIGUgXhJfkNifHuJQJp6r.KGdvLswq7lKxDrseWcWXR1kabgzsPsy"], ["created_at", "2018-12-05 16:52:34.452044"], ["updated_at", "2018-12-05 16:52:34.452044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.457127"], ["last_sign_in_at", "2018-12-05 16:52:34.457127"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.458253"], ["id", 3473]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.6ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 16ms (Views: 13.8ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oZC5Sw1uT47qp39o3Q.OAOJ.BgO.DEPwt5.V9VDR1x66AzXytmMWm"], ["created_at", "2018-12-05 16:52:34.491627"], ["updated_at", "2018-12-05 16:52:34.491627"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.495503"], ["last_sign_in_at", "2018-12-05 16:52:34.495503"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.496377"], ["id", 3474]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BjWgzQn0R.y4IMWRIxVJNukbwvi67xz7k6AqfC706K2XjBsKFy632"], ["created_at", "2018-12-05 16:52:34.510115"], ["updated_at", "2018-12-05 16:52:34.510115"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.514972"], ["last_sign_in_at", "2018-12-05 16:52:34.514972"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.516082"], ["id", 3475]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.EEjbVvouBVM33FixoPWVOhbBeYkk.K1DzGlgb6szDoSmYlwlz4/S"], ["created_at", "2018-12-05 16:52:34.540460"], ["updated_at", "2018-12-05 16:52:34.540460"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.545035"], ["last_sign_in_at", "2018-12-05 16:52:34.545035"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.545882"], ["id", 3476]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 14:52:34 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zKf5mXdG4Y1G5iMu9n8/WuNJi24Gw0VwqYY6leBwHLF5r82ogVu6m"], ["created_at", "2018-12-05 16:52:34.575716"], ["updated_at", "2018-12-05 16:52:34.575716"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.579554"], ["updated_at", "2018-12-05 16:52:34.579554"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2876” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.583258"], ["last_sign_in_at", "2018-12-05 16:52:34.583258"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.584286"], ["id", 3477]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2876"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2876], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ogoMt9MVgXRYj8YldgvVUe7I1u/tAeMUOQ1opdA7bf9EypvsOWuRu"], ["created_at", "2018-12-05 16:52:34.605555"], ["updated_at", "2018-12-05 16:52:34.605555"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.610371"], ["updated_at", "2018-12-05 16:52:34.610371"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2877” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.614197"], ["last_sign_in_at", "2018-12-05 16:52:34.614197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.615135"], ["id", 3478]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2877"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2877], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.634048"], ["updated_at", "2018-12-05 16:52:34.634048"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2878” for 127.0.0.1 at 2018-12-05 14:52:34 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2878"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$M0WZ/FMqWOw2RW99I/vPcu7rkc.7Psp1WkpyAu4.UVXqSDKS3PG4m"], ["created_at", "2018-12-05 16:52:34.648043"], ["updated_at", "2018-12-05 16:52:34.648043"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.652292"], ["updated_at", "2018-12-05 16:52:34.652292"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2879” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.656172"], ["last_sign_in_at", "2018-12-05 16:52:34.656172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.657102"], ["id", 3479]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2879"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.676205"], ["updated_at", "2018-12-05 16:52:34.676205"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2880” for 127.0.0.1 at 2018-12-05 14:52:34 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2880"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7j1anNAP6co.ZnsZj6Hje.v.xjlafOoVQODKCElE.swjgNsP6ao4m"], ["created_at", "2018-12-05 16:52:34.690564"], ["updated_at", "2018-12-05 16:52:34.690564"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.694516"], ["updated_at", "2018-12-05 16:52:34.694516"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2881/edit” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.698121"], ["last_sign_in_at", "2018-12-05 16:52:34.698121"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.698967"], ["id", 3480]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2881"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2881], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ji5qD1hivaYfMq/rAULj6OPpzzQcW5wgHajklKH7xQhV2yiY2z6rS"], ["created_at", "2018-12-05 16:52:34.723278"], ["updated_at", "2018-12-05 16:52:34.723278"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.727071"], ["updated_at", "2018-12-05 16:52:34.727071"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2882/edit” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.731228"], ["last_sign_in_at", "2018-12-05 16:52:34.731228"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.732613"], ["id", 3481]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2882"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2882], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.755325"], ["updated_at", "2018-12-05 16:52:34.755325"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2883” for 127.0.0.1 at 2018-12-05 14:52:34 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2883"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ra2mn6/2.P7fZCakrEHr2uBBNC0JZc3.JN3igzlY5qRPcrn7fz7iu"], ["created_at", "2018-12-05 16:52:34.770980"], ["updated_at", "2018-12-05 16:52:34.770980"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.776467"], ["last_sign_in_at", "2018-12-05 16:52:34.776467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.777637"], ["id", 3482]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.786598"], ["updated_at", "2018-12-05 16:52:34.786598"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZFAuREzkBOcBCYTcMRwc..qLmIzhDfC5Pt4Sa1cK43kqNreddG0SC"], ["created_at", "2018-12-05 16:52:34.802650"], ["updated_at", "2018-12-05 16:52:34.802650"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.808243"], ["last_sign_in_at", "2018-12-05 16:52:34.808243"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.809346"], ["id", 3483]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.816221"], ["updated_at", "2018-12-05 16:52:34.816221"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$w9issofO.lqc7ugoxDfdbOWrtkRtXolJP.U0TJ7cf4CkdzTJNasg."], ["created_at", "2018-12-05 16:52:34.829384"], ["updated_at", "2018-12-05 16:52:34.829384"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.835150"], ["last_sign_in_at", "2018-12-05 16:52:34.835150"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.836261"], ["id", 3484]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vBksiHhG4ljraNPeXa/aC.8LdVI/Kb4eXYzm0ouZdQyID5OG6aUvK"], ["created_at", "2018-12-05 16:52:34.855537"], ["updated_at", "2018-12-05 16:52:34.855537"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.861011"], ["last_sign_in_at", "2018-12-05 16:52:34.861011"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.862037"], ["id", 3485]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$unlDGnctB3Qo.9hVjuri8eWaKo6RyWkWdw/ShVZ7MvwNR0ynCvHWK"], ["created_at", "2018-12-05 16:52:34.880439"], ["updated_at", "2018-12-05 16:52:34.880439"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.885543"], ["last_sign_in_at", "2018-12-05 16:52:34.885543"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.886627"], ["id", 3486]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$314gj/pjUNZiVytBIWBnZuFjvflBRVzH02wbl5hTmFjl/jcGjTplm"], ["created_at", "2018-12-05 16:52:34.902630"], ["updated_at", "2018-12-05 16:52:34.902630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.907040"], ["updated_at", "2018-12-05 16:52:34.907040"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2886” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.911769"], ["last_sign_in_at", "2018-12-05 16:52:34.911769"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.912812"], ["id", 3487]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2886"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2886], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 16:52:34.920768"], ["id", 2886]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2886 Completed 302 Found in 7ms (ActiveRecord: 1.8ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rUbEuVt2b9Kpb0CZaAOECu5UMxdsNbihr6MRIqoX61UdqUuaZUfdu"], ["created_at", "2018-12-05 16:52:34.935860"], ["updated_at", "2018-12-05 16:52:34.935860"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.940275"], ["updated_at", "2018-12-05 16:52:34.940275"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2887” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.944966"], ["last_sign_in_at", "2018-12-05 16:52:34.944966"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.945985"], ["id", 3488]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2887"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2887], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 16:52:34.953742"], ["id", 2887]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2887 Completed 302 Found in 7ms (ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OEf0qQBBuYPGkAFxMCb5cOlXjl8jSBpPaOXcdXxdWRbjFtg9Wf9li"], ["created_at", "2018-12-05 16:52:34.967797"], ["updated_at", "2018-12-05 16:52:34.967797"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:34.972239"], ["updated_at", "2018-12-05 16:52:34.972239"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2888” for 127.0.0.1 at 2018-12-05 14:52:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:34.977105"], ["last_sign_in_at", "2018-12-05 16:52:34.977105"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:34.978283"], ["id", 3489]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2888"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2888], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 0.8ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/5Y3.dTC7WePeFHceNSV2.j59sHcRtcx75Irwl2iHushqdRFeMfl6"], ["created_at", "2018-12-05 16:52:35.005167"], ["updated_at", "2018-12-05 16:52:35.005167"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:35.009196"], ["updated_at", "2018-12-05 16:52:35.009196"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2889” for 127.0.0.1 at 2018-12-05 14:52:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:35.014276"], ["last_sign_in_at", "2018-12-05 16:52:35.014276"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:35.015339"], ["id", 3490]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2889"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2889], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 1.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zIjdNfAoD7EVi5FoUTGfce3TQU8.ZPTeim7ezfM4MbYco3D6hB7bm"], ["created_at", "2018-12-05 16:52:35.043332"], ["updated_at", "2018-12-05 16:52:35.043332"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 14:52:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:35.048852"], ["last_sign_in_at", "2018-12-05 16:52:35.048852"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:35.049879"], ["id", 3491]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7fJXQcWmATRxFZIf9ijuGupzVn4/rC.fino.3ZbaUcYuDDBpvz0pm"], ["created_at", "2018-12-05 16:52:35.064786"], ["updated_at", "2018-12-05 16:52:35.064786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:35.069281"], ["updated_at", "2018-12-05 16:52:35.069281"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2890” for 127.0.0.1 at 2018-12-05 14:52:35 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:35.072990"], ["last_sign_in_at", "2018-12-05 16:52:35.072990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:35.073858"], ["id", 3492]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2890"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2890], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2890]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vCwidHYMo7hzc1PScsrqneLE2b693/O6h0OyoQLfI7w9boFuJ8eVi"], ["created_at", "2018-12-05 16:52:35.092977"], ["updated_at", "2018-12-05 16:52:35.092977"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:35.097331"], ["updated_at", "2018-12-05 16:52:35.097331"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2891” for 127.0.0.1 at 2018-12-05 14:52:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:35.101142"], ["last_sign_in_at", "2018-12-05 16:52:35.101142"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:35.102226"], ["id", 3493]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2891"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2891], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2891]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dvUjyDAYh3kFxDQSeTV2pezyqYGtLVMv3xKmw2apfF2g4yWGIXpqK"], ["created_at", "2018-12-05 16:52:35.121195"], ["updated_at", "2018-12-05 16:52:35.121195"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:35.126012"], ["updated_at", "2018-12-05 16:52:35.126012"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2892” for 127.0.0.1 at 2018-12-05 14:52:35 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:35.129932"], ["last_sign_in_at", "2018-12-05 16:52:35.129932"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:35.130900"], ["id", 3494]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2892"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qXLKbeqbiE6HKMUICzAf8urno7SW4R.zI7SHBgy6cc5PsP1t9fLTu"], ["created_at", "2018-12-05 16:52:35.147149"], ["updated_at", "2018-12-05 16:52:35.147149"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:35.151466"], ["updated_at", "2018-12-05 16:52:35.151466"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2893” for 127.0.0.1 at 2018-12-05 14:52:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:35.155702"], ["last_sign_in_at", "2018-12-05 16:52:35.155702"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:35.156907"], ["id", 3495]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2893"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$drsuO72mgQs1pAObk3k0u.gjP50QwDG7PdEXE07wLNKfhAu4rAHcW"], ["created_at", "2018-12-05 16:52:35.172135"], ["updated_at", "2018-12-05 16:52:35.172135"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 14:52:35 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:35.176142"], ["last_sign_in_at", "2018-12-05 16:52:35.176142"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:35.176957"], ["id", 3496]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Saird1VpycOlQ/o3oYtPNustTDrf6fbsNFWei/G37WxSsf5V1R0y2"], ["created_at", "2018-12-05 16:52:35.206037"], ["updated_at", "2018-12-05 16:52:35.206037"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:35.212555"], ["updated_at", "2018-12-05 16:52:35.212555"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:35.217288"], ["updated_at", "2018-12-05 16:52:35.217288"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:35.221785"], ["updated_at", "2018-12-05 16:52:35.221785"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2894], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3497], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3497], ["room_id", 2894], ["created_at", "2018-12-05 16:52:35.233771"], ["updated_at", "2018-12-05 16:52:35.233771"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-05 14:52:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:35.238867"], ["last_sign_in_at", "2018-12-05 16:52:35.238867"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:35.240122"], ["id", 3497]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 25ms (Views: 9.0ms | ActiveRecord: 1.9ms)

Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WXoL8TpT8sQiEyKtcFtOdeSd1jfpZx7lin0a46w5bKcJPtwl404cW"], ["created_at", "2018-12-05 16:52:35.285923"], ["updated_at", "2018-12-05 16:52:35.285923"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:35.290671"], ["updated_at", "2018-12-05 16:52:35.290671"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:35.295062"], ["updated_at", "2018-12-05 16:52:35.295062"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 16:52:35.298809"], ["updated_at", "2018-12-05 16:52:35.298809"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2897], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3498], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3498], ["room_id", 2897], ["created_at", "2018-12-05 16:52:35.308038"], ["updated_at", "2018-12-05 16:52:35.308038"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-05 14:52:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 16:52:35.312960"], ["last_sign_in_at", "2018-12-05 16:52:35.312960"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 16:52:35.314019"], ["id", 3498]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bkfli42d1Vl8B90JHEutwem1xbCaJJWVYJlMJoWHSy.GdtoIwGdpu"], ["created_at", "2018-12-05 17:15:55.786238"], ["updated_at", "2018-12-05 17:15:55.786238"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ehq5dB85UZkMTwxHjKPIKOxlrd89odqNxoKswqeIQROFNmACW4LO6"], ["created_at", "2018-12-05 17:15:55.794736"], ["updated_at", "2018-12-05 17:15:55.794736"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:55.816586"], ["updated_at", "2018-12-05 17:15:55.816586"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2900], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3500], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3500], ["room_id", 2900], ["created_at", "2018-12-05 17:15:55.862139"], ["updated_at", "2018-12-05 17:15:55.862139"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2756"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2756], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2900], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3500], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (15.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.6ms)

UserMailer#status_notification: processed outbound mail in 409.4ms Sent mail to 123@123.com (12.6ms) Date: Wed, 05 Dec 2018 15:15:56 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0807cc4a0f6_16f0734f2496617@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0807cc47bf3_16f0734f2496562";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0807cc47bf3_16f0734f2496562 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c0807cc47bf3_16f0734f2496562 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c0807cc47bf3_16f0734f2496562–

Completed 302 Found in 434ms (ActiveRecord: 2.4ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$A9DCkmWr37MM7n3mmZfwWep9QD8XUe5aMWzIqHr.rv11/maz.N82C"], ["created_at", "2018-12-05 17:15:56.321855"], ["updated_at", "2018-12-05 17:15:56.321855"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Z/sCEQ1uZzh0fH.5HsMwgedwqFQ2LwGADIjeiR279xSWfbuA3xQ0K"], ["created_at", "2018-12-05 17:15:56.332438"], ["updated_at", "2018-12-05 17:15:56.332438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:56.337272"], ["updated_at", "2018-12-05 17:15:56.337272"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2901], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3502], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3502], ["room_id", 2901], ["created_at", "2018-12-05 17:15:56.346736"], ["updated_at", "2018-12-05 17:15:56.346736"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2757"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2757], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2901], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3502], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-05 17:15:56.360922"], ["id", 2757]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms Sent mail to 123@123.com (5.7ms) Date: Wed, 05 Dec 2018 15:15:56 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0807cc5abe2_16f0734f249686c@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0807cc59d1e_16f0734f2496715";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0807cc59d1e_16f0734f2496715 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c0807cc59d1e_16f0734f2496715 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c0807cc59d1e_16f0734f2496715–

Completed 302 Found in 24ms (ActiveRecord: 3.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3TkAt77/W1YplRwvpXoPEuqZ/m6yUcC4xvRSaKGbQTEtBIypw5Jy6"], ["created_at", "2018-12-05 17:15:56.385049"], ["updated_at", "2018-12-05 17:15:56.385049"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oVP.RgBeN0JiS73//p/kButB9qtKvspx9bvsWt4DKY94QURzJuwaa"], ["created_at", "2018-12-05 17:15:56.393551"], ["updated_at", "2018-12-05 17:15:56.393551"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:56.397780"], ["updated_at", "2018-12-05 17:15:56.397780"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2902], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3504], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3504], ["room_id", 2902], ["created_at", "2018-12-05 17:15:56.407259"], ["updated_at", "2018-12-05 17:15:56.407259"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6QOFyCaFpZFLPvR3MJow1up7GWsl9fURVBsxxKMoC.QW5OqeLBAx6"], ["created_at", "2018-12-05 17:15:56.424572"], ["updated_at", "2018-12-05 17:15:56.424572"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UFXcsA7usgyUmu1tmRB/Z.FRGuhc8US.SivBF/ce220dJlthtLmT6"], ["created_at", "2018-12-05 17:15:56.433047"], ["updated_at", "2018-12-05 17:15:56.433047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:56.437898"], ["updated_at", "2018-12-05 17:15:56.437898"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2903], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3506], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3506], ["room_id", 2903], ["created_at", "2018-12-05 17:15:56.446309"], ["updated_at", "2018-12-05 17:15:56.446309"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2759], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$sh5tyHojlfokbVrSt0WPzee89RS48cOZ43y.XOsIFksbsxuXj6Fra"], ["created_at", "2018-12-05 17:15:56.460609"], ["updated_at", "2018-12-05 17:15:56.460609"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3507"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "pSjs4s52HxXRx-D8o2waug"], ["updated_at", "2018-12-05 17:15:56.471592"], ["id", 3507]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-05 17:15:56.476029"], ["reset_sent_at", "2018-12-05 17:15:56.475135"], ["id", 3507]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)

UserMailer#password_reset: processed outbound mail in 10.0ms Sent mail to teste@unb.com.br (6.2ms) Date: Wed, 05 Dec 2018 15:15:56 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c0807cc77e4a_16f0734f2497191@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0807cc76e91_16f0734f249706a";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0807cc76e91_16f0734f249706a Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/pSjs4s52HxXRx-D8o2waug/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c0807cc76e91_16f0734f249706a Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/pSjs4s52HxXRx-D8o2waug/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c0807cc76e91_16f0734f249706a–

Redirected to test.host/login Completed 302 Found in 29ms (ActiveRecord: 3.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$gGR5UqD2FfCBuwA4wlWEo.k3NwIixx/iNYQ9D74/XTNSFhJ33b.Ea"], ["created_at", "2018-12-05 17:15:56.504993"], ["updated_at", "2018-12-05 17:15:56.504993"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.3ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$k9glg/7tju8JrzeQfFAq3O/2gTYGZGHSWwyDCvnN08a9cNZuL3kmK"], ["created_at", "2018-12-05 17:15:56.523378"], ["updated_at", "2018-12-05 17:15:56.523378"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3509"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$HOKpSC4vu7HJ8a2DfJud4eTht32NpMnOio9jN.9O9jmAeiXoCiDja"], ["updated_at", "2018-12-05 17:15:56.534205"], ["id", 3509]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 2.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$dFm8/9juDKfRKX.YnQCkTedl0yavXSQaiQjNAqBLYU33qmRrFEqMq"], ["created_at", "2018-12-05 17:15:56.550938"], ["updated_at", "2018-12-05 17:15:56.550938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3510"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$fCU0SV0gTYmdY/OOb9atl.BASmra3uuvMPmXqe47lt7.kD0xgWv42"], ["created_at", "2018-12-05 17:15:56.571357"], ["updated_at", "2018-12-05 17:15:56.571357"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3511"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 19ms (Views: 2.4ms | ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$niYfOuA/tygyLj6q8GhSRubPcGAPQh5Q9X/UjDoRVvr8UEWtaFJqi"], ["created_at", "2018-12-05 17:15:56.604284"], ["updated_at", "2018-12-05 17:15:56.604284"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3512"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$xDOpy8UJSfJgw1ZxehlUpeTvDuLVBuFgqV5YOz/e4.SsKNHLaQegK"], ["created_at", "2018-12-05 17:15:56.625469"], ["updated_at", "2018-12-05 17:15:56.625469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3513"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JJNwJjCCQ0r3KJ9IycfGYerR4H4nWii6Yc4/dooHekfcMOszzv1vi"], ["created_at", "2018-12-05 17:15:56.646029"], ["updated_at", "2018-12-05 17:15:56.646029"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.6ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cnkF3qJx3hY6PDdvqMLqw.41M2hwYyP6cxFevE4QZAJ9NTbLnWzde"], ["created_at", "2018-12-05 17:15:56.662282"], ["updated_at", "2018-12-05 17:15:56.662282"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.4ms

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$akLvNYpB5nsdIfGqRehOkOxqGISoRbTJk9F87iCha4GQlKjvefOty"], ["created_at", "2018-12-05 17:15:56.680104"], ["updated_at", "2018-12-05 17:15:56.680104"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:56.683867"], ["updated_at", "2018-12-05 17:15:56.683867"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2904], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3516], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3516], ["room_id", 2904], ["created_at", "2018-12-05 17:15:56.690501"], ["updated_at", "2018-12-05 17:15:56.690501"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DHE58JITir1.XjdZ1oSxv.0eTl/SJivwJ2yh56mWdAR5rdMKsNNZC"], ["created_at", "2018-12-05 17:15:56.706875"], ["updated_at", "2018-12-05 17:15:56.706875"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:56.711345"], ["updated_at", "2018-12-05 17:15:56.711345"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2905], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3517], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3517], ["room_id", 2905], ["created_at", "2018-12-05 17:15:56.719043"], ["updated_at", "2018-12-05 17:15:56.719043"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CY7O3ZuS39I4gNAJrFxsLOkM4Py3.zfZ8Z3o7r4PN1PaO32.LqyeO"], ["created_at", "2018-12-05 17:15:56.781044"], ["updated_at", "2018-12-05 17:15:56.781044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:56.785398"], ["updated_at", "2018-12-05 17:15:56.785398"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 15:15:56 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:56.798462"], ["last_sign_in_at", "2018-12-05 17:15:56.798462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:56.799682"], ["id", 3518]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2906"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2906], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3518], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3518], ["room_id", 2906], ["created_at", "2018-12-05 17:15:56.823681"], ["updated_at", "2018-12-05 17:15:56.823681"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.8ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2906], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ABYb/ALS8T3FM3SC5ue2V.BY7o4aC9kdgRNKxSvPvlpaIBbalhIEe"], ["created_at", "2018-12-05 17:15:56.842401"], ["updated_at", "2018-12-05 17:15:56.842401"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:56.847531"], ["updated_at", "2018-12-05 17:15:56.847531"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 15:15:56 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:56.852536"], ["last_sign_in_at", "2018-12-05 17:15:56.852536"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:56.853483"], ["id", 3519]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2907"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2907], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3519], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3519], ["room_id", 2907], ["created_at", "2018-12-05 17:15:56.864606"], ["updated_at", "2018-12-05 17:15:56.864606"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$X12Gr0zfxzAoCruTihvs5OSFDyqkxRabUkoSWxmLblFf.yucMavKq"], ["created_at", "2018-12-05 17:15:56.877094"], ["updated_at", "2018-12-05 17:15:56.877094"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:56.881110"], ["updated_at", "2018-12-05 17:15:56.881110"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 15:15:56 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:56.886259"], ["last_sign_in_at", "2018-12-05 17:15:56.886259"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:56.887231"], ["id", 3520]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2908", "user_id"=>"3520"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2908], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3520], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3520], ["room_id", 2908], ["created_at", "2018-12-05 17:15:56.898942"], ["updated_at", "2018-12-05 17:15:56.898942"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 15:15:56 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2908", "user_id"=>"3520"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3520], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2908], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3520], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3520], ["room_id", 2908], ["created_at", "2018-12-05 17:15:56.915176"], ["updated_at", "2018-12-05 17:15:56.915176"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FX/bPISoMNE2aAwWvoIxAu5lZTk6o4XcnLZ70nhg6ZFybnH7imA2u"], ["created_at", "2018-12-05 17:15:56.927925"], ["updated_at", "2018-12-05 17:15:56.927925"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:56.932289"], ["updated_at", "2018-12-05 17:15:56.932289"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 15:15:56 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:56.937727"], ["last_sign_in_at", "2018-12-05 17:15:56.937727"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:56.938858"], ["id", 3521]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2909", "user_id"=>"3521"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2909], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3521], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3521], ["room_id", 2909], ["created_at", "2018-12-05 17:15:56.950903"], ["updated_at", "2018-12-05 17:15:56.950903"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.6ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 15:15:56 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2909", "user_id"=>"3521"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3521], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2909], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3521], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3521], ["room_id", 2909], ["created_at", "2018-12-05 17:15:56.967174"], ["updated_at", "2018-12-05 17:15:56.967174"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.5ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2909], ["user_id", 3521], ["status", 2], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XLEa17/dW3MvS0Ov8/Lf0eVuqZavzWyoSYu3HdJKLTiQcAE3Ra2Fm"], ["created_at", "2018-12-05 17:15:56.982759"], ["updated_at", "2018-12-05 17:15:56.982759"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:56.987332"], ["updated_at", "2018-12-05 17:15:56.987332"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 15:15:56 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:56.993318"], ["last_sign_in_at", "2018-12-05 17:15:56.993318"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:56.994494"], ["id", 3522]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2910", "user_id"=>"3522"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2910], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3522], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3522], ["room_id", 2910], ["created_at", "2018-12-05 17:15:57.006505"], ["updated_at", "2018-12-05 17:15:57.006505"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 15:15:57 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2910", "user_id"=>"3522"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3522], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2910], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3522], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3522], ["room_id", 2910], ["created_at", "2018-12-05 17:15:57.023107"], ["updated_at", "2018-12-05 17:15:57.023107"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.5ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2910], ["user_id", 3522], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qnSrywFXZqg48NkzByRpVeACPyZb7Xl1I37JBP3vXodnpvsxRQaJi"], ["created_at", "2018-12-05 17:15:57.037648"], ["updated_at", "2018-12-05 17:15:57.037648"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:57.042251"], ["updated_at", "2018-12-05 17:15:57.042251"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.047254"], ["last_sign_in_at", "2018-12-05 17:15:57.047254"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.048303"], ["id", 3523]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2911"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2911], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DahWs/JQ/qIf4X0yj2cjMu.tlLC2HFEslGjEoMAfzI/LhM992AfDe"], ["created_at", "2018-12-05 17:15:57.065659"], ["updated_at", "2018-12-05 17:15:57.065659"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:57.070088"], ["updated_at", "2018-12-05 17:15:57.070088"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.074722"], ["last_sign_in_at", "2018-12-05 17:15:57.074722"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.075956"], ["id", 3524]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2912"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$s2Pe4fme8mICMrP9D0mBAekBHdmlJ/WOBf2BGlhswyfyd6jp2Ne.2"], ["created_at", "2018-12-05 17:15:57.095302"], ["updated_at", "2018-12-05 17:15:57.095302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:57.099865"], ["updated_at", "2018-12-05 17:15:57.099865"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2913], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3525], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3525], ["room_id", 2913], ["created_at", "2018-12-05 17:15:57.107966"], ["updated_at", "2018-12-05 17:15:57.107966"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2913” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.112374"], ["last_sign_in_at", "2018-12-05 17:15:57.112374"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.113423"], ["id", 3525]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2913"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2913], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2913')
Rendered appointments/show.html.erb within layouts/application (13.5ms)
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 204ms (Views: 199.6ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$c.rpoxrTnnQdpGgdIAfdIOLeBd.HSgma62.H6R5t283hlrSzigpJS"], ["created_at", "2018-12-05 17:15:57.333792"], ["updated_at", "2018-12-05 17:15:57.333792"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (1.5ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:57.340212"], ["updated_at", "2018-12-05 17:15:57.340212"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2914], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3526], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3526], ["room_id", 2914], ["created_at", "2018-12-05 17:15:57.351138"], ["updated_at", "2018-12-05 17:15:57.351138"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2771/edit” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.355882"], ["last_sign_in_at", "2018-12-05 17:15:57.355882"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.356939"], ["id", 3526]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2771"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2771], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HpQ.3J3LBCEOAfAx2KT/SOs4BZarnry.0ROWbOZvfE7g1J23Haf9K"], ["created_at", "2018-12-05 17:15:57.383873"], ["updated_at", "2018-12-05 17:15:57.383873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.388454"], ["last_sign_in_at", "2018-12-05 17:15:57.388454"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.389313"], ["id", 3527]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Odgj8DWLIaPtLnHWNG2obOOx7tu6H1IMEDoAvruN7vECUWteJ/MrW"], ["created_at", "2018-12-05 17:15:57.412895"], ["updated_at", "2018-12-05 17:15:57.412895"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:57.416947"], ["updated_at", "2018-12-05 17:15:57.416947"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2915], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3528], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3528], ["room_id", 2915], ["created_at", "2018-12-05 17:15:57.425098"], ["updated_at", "2018-12-05 17:15:57.425098"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2915], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3528], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3528], ["room_id", 2915], ["created_at", "2018-12-05 17:15:57.433366"], ["updated_at", "2018-12-05 17:15:57.433366"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.437420"], ["last_sign_in_at", "2018-12-05 17:15:57.437420"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.438387"], ["id", 3528]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3528]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.6ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 19ms (Views: 10.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YZLGIUjdmyHemVZCOXlpeuYQWOjcO6d0qSYF2agchAY84sewxdH5O"], ["created_at", "2018-12-05 17:15:57.473590"], ["updated_at", "2018-12-05 17:15:57.473590"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:57.478244"], ["updated_at", "2018-12-05 17:15:57.478244"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2916], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3529], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3529], ["room_id", 2916], ["created_at", "2018-12-05 17:15:57.486087"], ["updated_at", "2018-12-05 17:15:57.486087"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2916], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3529], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3529], ["room_id", 2916], ["created_at", "2018-12-05 17:15:57.494412"], ["updated_at", "2018-12-05 17:15:57.494412"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.498652"], ["last_sign_in_at", "2018-12-05 17:15:57.498652"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.499713"], ["id", 3529]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3529]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$szj0bMUfoHjfyjwfqVexNOSFm1z8BUBBhdjkZ64HRSrbrPWygnn9S"], ["created_at", "2018-12-05 17:15:57.522752"], ["updated_at", "2018-12-05 17:15:57.522752"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:57.527297"], ["updated_at", "2018-12-05 17:15:57.527297"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2917], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3530], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3530], ["room_id", 2917], ["created_at", "2018-12-05 17:15:57.535145"], ["updated_at", "2018-12-05 17:15:57.535145"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2776” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.539775"], ["last_sign_in_at", "2018-12-05 17:15:57.539775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.540823"], ["id", 3530]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2776"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2776], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2776]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$izsjpzXuJ7tfaKsjRj8ipuN1rPfSnm2uNIV40TENHc1ZZ1ozOzxq."], ["created_at", "2018-12-05 17:15:57.564267"], ["updated_at", "2018-12-05 17:15:57.564267"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:57.569216"], ["updated_at", "2018-12-05 17:15:57.569216"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2YqR7FVg5JkJ42ZLX8ZH..M.nOKSW9s4hP2CLB/nxXETnZWD8HkDS"], ["created_at", "2018-12-05 17:15:57.576969"], ["updated_at", "2018-12-05 17:15:57.576969"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2918], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3532], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3532], ["room_id", 2918], ["created_at", "2018-12-05 17:15:57.587778"], ["updated_at", "2018-12-05 17:15:57.587778"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2777” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.593888"], ["last_sign_in_at", "2018-12-05 17:15:57.593888"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.594978"], ["id", 3531]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2777"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2777], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2918], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3532], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 2.1ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dZZYsP6UMP7y23JypatboO4AxHJx7SGQAnpN4k4SrE7mW3Oa2FDY2"], ["created_at", "2018-12-05 17:15:57.620304"], ["updated_at", "2018-12-05 17:15:57.620304"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:57.625513"], ["updated_at", "2018-12-05 17:15:57.625513"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PTje1p7c9SOjiHs13PIQ7OdztZtlUGigFTFgIOE/JppThvoG0fX7i"], ["created_at", "2018-12-05 17:15:57.633577"], ["updated_at", "2018-12-05 17:15:57.633577"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2919], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3534], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3534], ["room_id", 2919], ["created_at", "2018-12-05 17:15:57.641918"], ["updated_at", "2018-12-05 17:15:57.641918"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2778” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.646991"], ["last_sign_in_at", "2018-12-05 17:15:57.646991"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.648105"], ["id", 3533]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2778"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2778], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2919], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3534], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jprqRpTsloFpfrkM1F9ibO523OSAkd81zBJuHyEQ/hyN5zFteXW.G"], ["created_at", "2018-12-05 17:15:57.671504"], ["updated_at", "2018-12-05 17:15:57.671504"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:57.676440"], ["updated_at", "2018-12-05 17:15:57.676440"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/JkSHtNBS34UPOritI5BWu4L47cB5aokh6egQMMbvN1CSoidx5cZm"], ["created_at", "2018-12-05 17:15:57.684418"], ["updated_at", "2018-12-05 17:15:57.684418"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2920], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3536], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3536], ["room_id", 2920], ["created_at", "2018-12-05 17:15:57.693430"], ["updated_at", "2018-12-05 17:15:57.693430"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2779” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.698719"], ["last_sign_in_at", "2018-12-05 17:15:57.698719"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.699818"], ["id", 3535]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2779"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2779], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2920], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3536], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-05 17:15:57.711313"], ["id", 2779]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms Sent mail to 123@123.com (5.9ms) Date: Wed, 05 Dec 2018 15:15:57 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0807cdb02a5_16f0734f249786e@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0807cdaf39b_16f0734f2497715";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0807cdaf39b_16f0734f2497715 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c0807cdaf39b_16f0734f2497715 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c0807cdaf39b_16f0734f2497715–

Completed 302 Found in 21ms (ActiveRecord: 2.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$j.bG6v6RRZwv9Bjeyi6v6O942EA9nXJmGZ1RNxkuVHzTG1HyAvUjq"], ["created_at", "2018-12-05 17:15:57.737300"], ["updated_at", "2018-12-05 17:15:57.737300"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:57.742055"], ["updated_at", "2018-12-05 17:15:57.742055"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SqWGIkGd0FBx2HtbH/UNA.wHSZkDZpuDZlGuKYTSP4H.xhZFstSvy"], ["created_at", "2018-12-05 17:15:57.749825"], ["updated_at", "2018-12-05 17:15:57.749825"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2921], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3538], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3538], ["room_id", 2921], ["created_at", "2018-12-05 17:15:57.759128"], ["updated_at", "2018-12-05 17:15:57.759128"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 17:15:57.763379"], ["id", 2780]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2921], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3538], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3538], ["room_id", 2921], ["created_at", "2018-12-05 17:15:57.772114"], ["updated_at", "2018-12-05 17:15:57.772114"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 17:15:57.776122"], ["id", 2781]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.780157"], ["last_sign_in_at", "2018-12-05 17:15:57.780157"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.781149"], ["id", 3537]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3538], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2921], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3538], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2921], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.1ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 2.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XtZhPa/jq5kFUqFxEgTITO.IP4s3jhBCsie1ltG8JnSO8Y6F28jO6"], ["created_at", "2018-12-05 17:15:57.813522"], ["updated_at", "2018-12-05 17:15:57.813522"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:57.818299"], ["updated_at", "2018-12-05 17:15:57.818299"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$m1dEdVTi.yjVdm/1CqKB5.vunsBy0IqkGHhTK3N7UAs5ErYpwMxIW"], ["created_at", "2018-12-05 17:15:57.825886"], ["updated_at", "2018-12-05 17:15:57.825886"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2922], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3540], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3540], ["room_id", 2922], ["created_at", "2018-12-05 17:15:57.834331"], ["updated_at", "2018-12-05 17:15:57.834331"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 17:15:57.838435"], ["id", 2782]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2922], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3540], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3540], ["room_id", 2922], ["created_at", "2018-12-05 17:15:57.846326"], ["updated_at", "2018-12-05 17:15:57.846326"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 17:15:57.850344"], ["id", 2783]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.854328"], ["last_sign_in_at", "2018-12-05 17:15:57.854328"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.855404"], ["id", 3539]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3540], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2922], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3540], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2922], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.9ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 15ms (Views: 11.4ms | ActiveRecord: 2.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$R5VHhtYZWeg9fPZxjByr7.zZ0roqfNlxIhLdd22YQjjzAWaBBlZSi"], ["created_at", "2018-12-05 17:15:57.887163"], ["updated_at", "2018-12-05 17:15:57.887163"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.891609"], ["last_sign_in_at", "2018-12-05 17:15:57.891609"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.892800"], ["id", 3541]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (5.9ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qv3GgrjoRTafh.RYpdbJQ.AeMPP.1js22CnrIrS3ryZaYyzFZt6yG"], ["created_at", "2018-12-05 17:15:57.922317"], ["updated_at", "2018-12-05 17:15:57.922317"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.926838"], ["last_sign_in_at", "2018-12-05 17:15:57.926838"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.927875"], ["id", 3542]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cEu4TTGijjQH5yx7goIxl.YNdXdJRAOxMLxVfwoFOxb4i2t6qeYia"], ["created_at", "2018-12-05 17:15:57.943015"], ["updated_at", "2018-12-05 17:15:57.943015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.947332"], ["last_sign_in_at", "2018-12-05 17:15:57.947332"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.948389"], ["id", 3543]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6g9fbymW/szVnMz8zxVbKuV20jReDIwb7bCkct42CUX5B96vav1YC"], ["created_at", "2018-12-05 17:15:57.972157"], ["updated_at", "2018-12-05 17:15:57.972157"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:15:57 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:57.977122"], ["last_sign_in_at", "2018-12-05 17:15:57.977122"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:57.978404"], ["id", 3544]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:15:57 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dwjwvz5Rs575J0XpIW43bOkvL2IZh9eme04CNQQxiieLa/I4alfIK"], ["created_at", "2018-12-05 17:15:58.014468"], ["updated_at", "2018-12-05 17:15:58.014468"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.018548"], ["updated_at", "2018-12-05 17:15:58.018548"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2923” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.022789"], ["last_sign_in_at", "2018-12-05 17:15:58.022789"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.024081"], ["id", 3545]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2923"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2923], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0W44j3F41hSjvlCBp5JfpOldMHP0rtQNp57CH6oWmg2MTYa8KIzze"], ["created_at", "2018-12-05 17:15:58.048886"], ["updated_at", "2018-12-05 17:15:58.048886"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.053520"], ["updated_at", "2018-12-05 17:15:58.053520"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2924” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.057483"], ["last_sign_in_at", "2018-12-05 17:15:58.057483"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.058409"], ["id", 3546]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2924"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2924], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.075884"], ["updated_at", "2018-12-05 17:15:58.075884"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2925” for 127.0.0.1 at 2018-12-05 15:15:58 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2925"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dsBLMxJF/9Qybm0V9J5swO7WxCgxLQm9bNr5ILzEscrvucDIE3paS"], ["created_at", "2018-12-05 17:15:58.091849"], ["updated_at", "2018-12-05 17:15:58.091849"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.096191"], ["updated_at", "2018-12-05 17:15:58.096191"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2926” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.100044"], ["last_sign_in_at", "2018-12-05 17:15:58.100044"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.101130"], ["id", 3547]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2926"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.120898"], ["updated_at", "2018-12-05 17:15:58.120898"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2927” for 127.0.0.1 at 2018-12-05 15:15:58 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2927"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SybZV7sF.Ze6qWsXBevNceQIWEbHL6DNxYwEpSWi/HMsT9fgMB0Oa"], ["created_at", "2018-12-05 17:15:58.135147"], ["updated_at", "2018-12-05 17:15:58.135147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.139354"], ["updated_at", "2018-12-05 17:15:58.139354"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2928/edit” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.143140"], ["last_sign_in_at", "2018-12-05 17:15:58.143140"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.144069"], ["id", 3548]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2928"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2928], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7QkKlY.dQRIY0FKywVblq.WvCFyvQJ1Qgo.lUCshebXOpBUrqzRBy"], ["created_at", "2018-12-05 17:15:58.168870"], ["updated_at", "2018-12-05 17:15:58.168870"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.173568"], ["updated_at", "2018-12-05 17:15:58.173568"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2929/edit” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.177455"], ["last_sign_in_at", "2018-12-05 17:15:58.177455"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.178472"], ["id", 3549]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2929"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2929], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.199016"], ["updated_at", "2018-12-05 17:15:58.199016"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2930” for 127.0.0.1 at 2018-12-05 15:15:58 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2930"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4iD4S9w1aRY8Awsuv.7TGeQ2iVveJ0W0nF3331a7M990IakPLADLu"], ["created_at", "2018-12-05 17:15:58.215713"], ["updated_at", "2018-12-05 17:15:58.215713"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.221168"], ["last_sign_in_at", "2018-12-05 17:15:58.221168"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.222211"], ["id", 3550]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.228923"], ["updated_at", "2018-12-05 17:15:58.228923"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EeJu3yzPVA7Sj5RUTw753eu99A0iSncn7MTqySNYJTbZlNhkHTMwO"], ["created_at", "2018-12-05 17:15:58.243300"], ["updated_at", "2018-12-05 17:15:58.243300"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.248507"], ["last_sign_in_at", "2018-12-05 17:15:58.248507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.249443"], ["id", 3551]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.255614"], ["updated_at", "2018-12-05 17:15:58.255614"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/fAXll1XAP1/Wa6XiEzpDeG4TQVnEGDqJ742CX1HqYktPEDpiGHeG"], ["created_at", "2018-12-05 17:15:58.267563"], ["updated_at", "2018-12-05 17:15:58.267563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.273179"], ["last_sign_in_at", "2018-12-05 17:15:58.273179"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.274113"], ["id", 3552]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.5ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DjlB40z10YIWWT2jbuehGeytOkBwl4qJYKr2NpcW1oImPP9Hgc0NC"], ["created_at", "2018-12-05 17:15:58.292877"], ["updated_at", "2018-12-05 17:15:58.292877"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.297922"], ["last_sign_in_at", "2018-12-05 17:15:58.297922"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.298920"], ["id", 3553]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AXkOurp/yvCak2GRKraBTOrWuX0d4pDL2CsKsvFbTtwG.KO5VXOKe"], ["created_at", "2018-12-05 17:15:58.316383"], ["updated_at", "2018-12-05 17:15:58.316383"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.320910"], ["last_sign_in_at", "2018-12-05 17:15:58.320910"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.321785"], ["id", 3554]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$46KSrTZEKj7l8bDgEsIJkO33EGGKSO/zqZuKAc.1fky8DROlI8Y8u"], ["created_at", "2018-12-05 17:15:58.335831"], ["updated_at", "2018-12-05 17:15:58.335831"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.339773"], ["updated_at", "2018-12-05 17:15:58.339773"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2933” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.344421"], ["last_sign_in_at", "2018-12-05 17:15:58.344421"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.345383"], ["id", 3555]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2933"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2933], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 17:15:58.354732"], ["id", 2933]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2933 Completed 302 Found in 8ms (ActiveRecord: 1.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KwuHLp6Rw.SudisA.BFDy.G7eilOhEU2Wy.AiG9tfZigXg/sAyRmW"], ["created_at", "2018-12-05 17:15:58.370367"], ["updated_at", "2018-12-05 17:15:58.370367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.374995"], ["updated_at", "2018-12-05 17:15:58.374995"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2934” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.379979"], ["last_sign_in_at", "2018-12-05 17:15:58.379979"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.380975"], ["id", 3556]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2934"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2934], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 17:15:58.389513"], ["id", 2934]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/2934 Completed 302 Found in 8ms (ActiveRecord: 1.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.Mflkie.uzRuTcduhfCU3OoekG4pjIFn1kiCzant4RR1rowavbESC"], ["created_at", "2018-12-05 17:15:58.405353"], ["updated_at", "2018-12-05 17:15:58.405353"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.410376"], ["updated_at", "2018-12-05 17:15:58.410376"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2935” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.415183"], ["last_sign_in_at", "2018-12-05 17:15:58.415183"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.416225"], ["id", 3557]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2935"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2935], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 1.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T8UC6JlbUjpt6MNYh7mlq.hhDI8VQeJoyXSlPJMbS7rCa2b3UhVv."], ["created_at", "2018-12-05 17:15:58.444487"], ["updated_at", "2018-12-05 17:15:58.444487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.448609"], ["updated_at", "2018-12-05 17:15:58.448609"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/2936” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.453252"], ["last_sign_in_at", "2018-12-05 17:15:58.453252"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.454601"], ["id", 3558]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"2936"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2936], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.8ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 1.5ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cxj7n9HApnK1C6Ff6h4hgeMi4BWRsZBmD7nX6Ea1LhF4kvyQpcYTW"], ["created_at", "2018-12-05 17:15:58.483551"], ["updated_at", "2018-12-05 17:15:58.483551"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.489802"], ["last_sign_in_at", "2018-12-05 17:15:58.489802"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.490992"], ["id", 3559]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OupFbuUq35rywcVtl6u14e19yYVUVLyAlBjQHQsEhfSv9ZFwkNniW"], ["created_at", "2018-12-05 17:15:58.506281"], ["updated_at", "2018-12-05 17:15:58.506281"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.510703"], ["updated_at", "2018-12-05 17:15:58.510703"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2937” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.514499"], ["last_sign_in_at", "2018-12-05 17:15:58.514499"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.515517"], ["id", 3560]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2937"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2937], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2937]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aamoyKhBxqKTuF/Xqy9K/On50KJKl0qR/4jzpWVNGnG0uFREuET9O"], ["created_at", "2018-12-05 17:15:58.536145"], ["updated_at", "2018-12-05 17:15:58.536145"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.540581"], ["updated_at", "2018-12-05 17:15:58.540581"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2938” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.544529"], ["last_sign_in_at", "2018-12-05 17:15:58.544529"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.545553"], ["id", 3561]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2938"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2938], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2938]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5wVtKPj6vLxl7kGbJNGuKeOVDczivhcGW4okL3ixh7oLUs2pqobqi"], ["created_at", "2018-12-05 17:15:58.564414"], ["updated_at", "2018-12-05 17:15:58.564414"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.568372"], ["updated_at", "2018-12-05 17:15:58.568372"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2939” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.572068"], ["last_sign_in_at", "2018-12-05 17:15:58.572068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.574109"], ["id", 3562]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2939"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uPG4.2IwlT.g3fOo8fkf.ukrqa8ZUR9fanwtJ3HhYyA4zTjg886Xq"], ["created_at", "2018-12-05 17:15:58.593060"], ["updated_at", "2018-12-05 17:15:58.593060"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.598666"], ["updated_at", "2018-12-05 17:15:58.598666"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/2940” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.602879"], ["last_sign_in_at", "2018-12-05 17:15:58.602879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.603993"], ["id", 3563]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2940"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.6ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8sMZy2g62bY7WBLuONkif.VwZF4VkWxljkmXbPRrHTPyGNAoj0EKi"], ["created_at", "2018-12-05 17:15:58.620321"], ["updated_at", "2018-12-05 17:15:58.620321"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.624687"], ["last_sign_in_at", "2018-12-05 17:15:58.624687"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.625583"], ["id", 3564]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L5bc6alymJED2jf9w8vgQ.6FYdWpSmEwiIOWxvnbk2mkoDQuuL2ZG"], ["created_at", "2018-12-05 17:15:58.650039"], ["updated_at", "2018-12-05 17:15:58.650039"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.654144"], ["updated_at", "2018-12-05 17:15:58.654144"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.657255"], ["updated_at", "2018-12-05 17:15:58.657255"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.660084"], ["updated_at", "2018-12-05 17:15:58.660084"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2941], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3565], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3565], ["room_id", 2941], ["created_at", "2018-12-05 17:15:58.666832"], ["updated_at", "2018-12-05 17:15:58.666832"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.671179"], ["last_sign_in_at", "2018-12-05 17:15:58.671179"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.672148"], ["id", 3565]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 20ms (Views: 7.6ms | ActiveRecord: 1.6ms)

Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.8ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aXK.Z5hvmnaku6/Rz1.HXeHM2s8TiTGUU/G4XeBrQbwwNfedeTS/i"], ["created_at", "2018-12-05 17:15:58.710095"], ["updated_at", "2018-12-05 17:15:58.710095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.715837"], ["updated_at", "2018-12-05 17:15:58.715837"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.719970"], ["updated_at", "2018-12-05 17:15:58.719970"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 17:15:58.723591"], ["updated_at", "2018-12-05 17:15:58.723591"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2944], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3566], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3566], ["room_id", 2944], ["created_at", "2018-12-05 17:15:58.740926"], ["updated_at", "2018-12-05 17:15:58.740926"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-05 15:15:58 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:15:58.745781"], ["last_sign_in_at", "2018-12-05 17:15:58.745781"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:15:58.746864"], ["id", 3566]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 28ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$im.PzD/t1TJ7YHCmeS6QTOvxE0rhEeOZHCg0sLia39H7Qc6mWZalG"], ["created_at", "2018-12-05 17:16:22.360224"], ["updated_at", "2018-12-05 17:16:22.360224"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:22 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (49.0ms)
Rendered users/sessions/new.html.erb within layouts/application (308.0ms)

Completed 200 OK in 368ms (Views: 346.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:22 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:22.850701"], ["last_sign_in_at", "2018-12-05 17:16:22.850701"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:22.851939"], ["id", 3567]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 71ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:22 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3567], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.7ms)
Rendered layouts/_header-admin.html.erb (2.2ms)

Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:22 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3567], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 15:16:22 -0200 Processing by RoomsController#new as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3567], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.3ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 36ms (Views: 12.3ms | ActiveRecord: 6.3ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 15:16:22 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3567], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3567], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.7ms)

 (0.6ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$xo1ao1U7MPputyagSi9BtegtzWIXRBeaCvvoeMeG/2dou.Ip03R3a"], ["created_at", "2018-12-05 17:16:23.032237"], ["updated_at", "2018-12-05 17:16:23.032237"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:23.060577"], ["last_sign_in_at", "2018-12-05 17:16:23.060577"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:23.062082"], ["id", 3568]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3568], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3568], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by RoomsController#new as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3568], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.7ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3568], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3568], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (2.1ms)

Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.6ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$mY3K.LRb4qOJC.Gh5GgGZeRqQcb65CS6fgCOs3BwXPsuaD5kwL9ia"], ["created_at", "2018-12-05 17:16:23.161303"], ["updated_at", "2018-12-05 17:16:23.161303"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:23.191319"], ["last_sign_in_at", "2018-12-05 17:16:23.191319"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:23.192463"], ["id", 3569]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3569], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)

 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$wXea94uae5z5PwuQvb9VAeVUN9GHNXR9cajuZ9teAKrLtgRhxfRvS"], ["created_at", "2018-12-05 17:16:23.230300"], ["updated_at", "2018-12-05 17:16:23.230300"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 4ms (ActiveRecord: 1.0ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.5ms)
Rendered users/sessions/new.html.erb within layouts/application (2.9ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$b0rGkFzC2UeKoQSVkescUecyFYJ0m/C8LiUFKpsIDjBDd6KSlJGrG"], ["created_at", "2018-12-05 17:16:23.280697"], ["updated_at", "2018-12-05 17:16:23.280697"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.3ms)
Rendered users/sessions/new.html.erb within layouts/application (4.2ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:23.307089"], ["last_sign_in_at", "2018-12-05 17:16:23.307089"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:23.308145"], ["id", 3571]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 12ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3571], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (3.1ms)

Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.8ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 17:16:23.331286"], ["updated_at", "2018-12-05 17:16:23.331286"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by RoomsController#index as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3571], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 17ms (Views: 13.0ms | ActiveRecord: 1.3ms) Started GET “/appointments/2947” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2947"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2947], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2947')
Rendered appointments/show.html.erb within layouts/application (12.9ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3571], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 65ms (Views: 18.0ms | ActiveRecord: 5.4ms) Started POST “/appointments.2947” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3571], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2947], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3571], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 3571], ["room_id", 2947], ["created_at", "2018-12-05 17:16:23.489060"], ["updated_at", "2018-12-05 17:16:23.489060"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 42ms (ActiveRecord: 6.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3571], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$OcKWUxCeJmTREkKZSu1AmOF7k3AOx9Ol2Ab7wZRMS0A1D1GqpuSWy"], ["created_at", "2018-12-05 17:16:23.520969"], ["updated_at", "2018-12-05 17:16:23.520969"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:23.549550"], ["last_sign_in_at", "2018-12-05 17:16:23.549550"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:23.550623"], ["id", 3572]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3572], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 1.0ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 17:16:23.572225"], ["updated_at", "2018-12-05 17:16:23.572225"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2948], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3572], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3572], ["room_id", 2948], ["created_at", "2018-12-05 17:16:23.583545"], ["updated_at", "2018-12-05 17:16:23.583545"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3572], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 7.1ms | ActiveRecord: 1.4ms) Started GET “/appointments/2948” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2948"}
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2948], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2948')
Rendered appointments/show.html.erb within layouts/application (10.8ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3572], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 22ms (Views: 17.1ms | ActiveRecord: 2.1ms) Started POST “/appointments.2948” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3572], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2948], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3572], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 3572], ["room_id", 2948], ["created_at", "2018-12-05 17:16:23.659756"], ["updated_at", "2018-12-05 17:16:23.659756"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3572], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$yvNB7Az7KzocfZx/z3mev.w/dp4nycOu7dXmgk2BHJ0GKCUJoklia"], ["created_at", "2018-12-05 17:16:23.689015"], ["updated_at", "2018-12-05 17:16:23.689015"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:23.716387"], ["last_sign_in_at", "2018-12-05 17:16:23.716387"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:23.717286"], ["id", 3573]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3573], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.9ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 1.0ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 17:16:23.738115"], ["updated_at", "2018-12-05 17:16:23.738115"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2949], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3573], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3573], ["room_id", 2949], ["created_at", "2018-12-05 17:16:23.748710"], ["updated_at", "2018-12-05 17:16:23.748710"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3573], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3573]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.0ms)
Rendered layouts/_header-user.html.erb (8.5ms)

Completed 200 OK in 35ms (Views: 18.7ms | ActiveRecord: 1.3ms) Started DELETE “/appointments/2789” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2789"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2789], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2789]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3573], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3573]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 13ms (Views: 7.9ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$tpoXWe1sSk.nCpS0mauQW.f8J3mz0LfEfDm33B4Vc4D.1n9299v6u"], ["created_at", "2018-12-05 17:16:23.842767"], ["updated_at", "2018-12-05 17:16:23.842767"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (4.2ms)

Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:23.873543"], ["last_sign_in_at", "2018-12-05 17:16:23.873543"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:23.874584"], ["id", 3574]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3574], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.7ms)
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 17:16:23.898621"], ["updated_at", "2018-12-05 17:16:23.898621"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2950], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3574], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 3574], ["room_id", 2950], ["created_at", "2018-12-05 17:16:23.912152"], ["updated_at", "2018-12-05 17:16:23.912152"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3574], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3574]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 15ms (Views: 9.4ms | ActiveRecord: 1.4ms) Started DELETE “/appointments/2790” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2790"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2790], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2790]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.7ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3574], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3574]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Z76hg/ENVxzS2..nYsvRmO.6wgrGYAplmiYZYKLDxo0dbLKExKQGe"], ["created_at", "2018-12-05 17:16:23.988099"], ["updated_at", "2018-12-05 17:16:23.988099"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.3ms)
Rendered users/sessions/new.html.erb within layouts/application (4.3ms)

Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:24.022558"], ["last_sign_in_at", "2018-12-05 17:16:24.022558"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:24.024398"], ["id", 3575]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 1.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3575], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.6ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-05 17:16:24.045320"], ["updated_at", "2018-12-05 17:16:24.045320"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-05 17:16:24.048342"], ["updated_at", "2018-12-05 17:16:24.048342"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3575], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (6.6ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3575], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 19ms (Views: 15.2ms | ActiveRecord: 1.3ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (1.6ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3575], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (2.3ms)

Completed 200 OK in 13ms (Views: 9.7ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$dJDbCb6tBlJm/DCzy.nUnOR5l6OQ57fO5xONJGtG/PZmEQ76/pQse"], ["created_at", "2018-12-05 17:16:24.128514"], ["updated_at", "2018-12-05 17:16:24.128514"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.4ms)
Rendered users/sessions/new.html.erb within layouts/application (5.9ms)

Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:24.161236"], ["last_sign_in_at", "2018-12-05 17:16:24.161236"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:24.162248"], ["id", 3576]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 12ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3576], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.8ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (2.2ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3576], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 1.5ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.7ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.5ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$R/XrEY1aImL1yxHtSltVZO2mjHBEYlrgZ5Kb.zp9ynxoJ2Z7gBxOK"], ["created_at", "2018-12-05 17:16:24.302715"], ["updated_at", "2018-12-05 17:16:24.302715"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:24.327288"], ["last_sign_in_at", "2018-12-05 17:16:24.327288"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:24.328239"], ["id", 3577]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3577], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 17:16:24.348293"], ["updated_at", "2018-12-05 17:16:24.348293"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2953], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3577], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3577], ["room_id", 2953], ["created_at", "2018-12-05 17:16:24.357603"], ["updated_at", "2018-12-05 17:16:24.357603"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3577], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 1.2ms) Started GET “/appointments/2953” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2953"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2953], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2953')
Rendered appointments/show.html.erb within layouts/application (7.0ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3577], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 15ms (Views: 11.7ms | ActiveRecord: 1.8ms) Started POST “/appointments.2953” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3577], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2953], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3577], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 3577], ["room_id", 2953], ["created_at", "2018-12-05 17:16:24.420288"], ["updated_at", "2018-12-05 17:16:24.420288"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3577], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$T7thsOgbDEDY/H4JVWACNu/cQ.uz4lmsj7l24UjoJFhv0TQhPTvCC"], ["created_at", "2018-12-05 17:16:24.447402"], ["updated_at", "2018-12-05 17:16:24.447402"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.0ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:24.472824"], ["last_sign_in_at", "2018-12-05 17:16:24.472824"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:24.473792"], ["id", 3578]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3578], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 17:16:24.493239"], ["updated_at", "2018-12-05 17:16:24.493239"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2954], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3578], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3578], ["room_id", 2954], ["created_at", "2018-12-05 17:16:24.502965"], ["updated_at", "2018-12-05 17:16:24.502965"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3578], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3578]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$.rI0VhRYo/3coiyiD77ZJ.V4L.Y.OmncOo0M3Tsk9NOmqUBCVYUcO"], ["created_at", "2018-12-05 17:16:24.538133"], ["updated_at", "2018-12-05 17:16:24.538133"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:24.562481"], ["last_sign_in_at", "2018-12-05 17:16:24.562481"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:24.563317"], ["id", 3579]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3579], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 17:16:24.580668"], ["updated_at", "2018-12-05 17:16:24.580668"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2955], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3579], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 3579], ["room_id", 2955], ["created_at", "2018-12-05 17:16:24.590860"], ["updated_at", "2018-12-05 17:16:24.590860"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3579], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3579]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$vpzJ1JzLbGidOiW20jMdwuqDvaPoKX.yMLHwFU3Sk9SCHXGmwn.le"], ["created_at", "2018-12-05 17:16:24.626868"], ["updated_at", "2018-12-05 17:16:24.626868"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:24.653304"], ["last_sign_in_at", "2018-12-05 17:16:24.653304"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:24.654472"], ["id", 3580]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3580], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$gNbXgz/sy9GjdMZ.9yycROzPrvWUYpUjEXL5cGYeHWOpG6I54WMfa"], ["created_at", "2018-12-05 17:16:24.685573"], ["updated_at", "2018-12-05 17:16:24.685573"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:24.710396"], ["last_sign_in_at", "2018-12-05 17:16:24.710396"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:24.711382"], ["id", 3581]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3581], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 17:16:24.729891"], ["updated_at", "2018-12-05 17:16:24.729891"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 17:16:24.733165"], ["updated_at", "2018-12-05 17:16:24.733165"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3581], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 1.3ms) Started GET “/appointments/2956” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2956"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2956], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2956')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3581], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 2.0ms) Started POST “/appointments.2956” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3581], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2956], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3581], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 3581], ["room_id", 2956], ["created_at", "2018-12-05 17:16:24.798051"], ["updated_at", "2018-12-05 17:16:24.798051"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3581], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$NIquLXqvM.LqS5pbTaCLUeJLmp5ZMc8xIaoN8BjGlh2RtoAWHnOue"], ["created_at", "2018-12-05 17:16:24.827198"], ["updated_at", "2018-12-05 17:16:24.827198"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:24.852910"], ["last_sign_in_at", "2018-12-05 17:16:24.852910"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:24.854068"], ["id", 3582]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3582], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.4ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 1.1ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 17:16:24.874712"], ["updated_at", "2018-12-05 17:16:24.874712"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 17:16:24.878527"], ["updated_at", "2018-12-05 17:16:24.878527"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by RoomsController#index as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3582], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 1.2ms) Started GET “/appointments/2958” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2958"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2958], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2958')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3582], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 2.1ms) Started POST “/appointments.2958” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3582], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3582], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$23S9D4GE2Yt497zaWMn4qOBP78IwhkWYS1Szqd52EA5r3sC.CqImS"], ["created_at", "2018-12-05 17:16:24.965167"], ["updated_at", "2018-12-05 17:16:24.965167"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:24.990578"], ["last_sign_in_at", "2018-12-05 17:16:24.990578"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:24.991621"], ["id", 3583]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:24 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3583], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-05 17:16:25.010039"], ["updated_at", "2018-12-05 17:16:25.010039"], ["tipo_sala", "tipoTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3583], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.3ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.8ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3583], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 1.3ms) Started DELETE “/rooms/2960” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"2960"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3583], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2960], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 2960]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3583], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$hF8vCr4y2GyF.7knsf2BfeT4h23l0hOB80TZOyDLFhDRY9NXh51H6"], ["created_at", "2018-12-05 17:16:25.079451"], ["updated_at", "2018-12-05 17:16:25.079451"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-05 17:16:25.093748"], ["updated_at", "2018-12-05 17:16:25.093748"], ["tipo_sala", "tipoTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.1ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:25.128931"], ["last_sign_in_at", "2018-12-05 17:16:25.128931"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:25.129738"], ["id", 3584]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3584], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.6ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.6ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by RoomsController#index as HTML

User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3584], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 11ms (Views: 6.6ms | ActiveRecord: 1.7ms) Started GET “/rooms/2961/edit” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2961"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3584], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2961], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 1.2ms) Started PATCH “/rooms/2961” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"2961"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3584], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2961], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 1.6ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$22U1k.bt/y6mVmN0LLRPsuN4h5WMaXvkeU98zRAg63UroO1HIeL8S"], ["created_at", "2018-12-05 17:16:25.230871"], ["updated_at", "2018-12-05 17:16:25.230871"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$1ibY.RuGCPCHGGi3CT/WguYz23uGSBlNkcdQH8aSa5Q0QYQ1WvCqK"], ["created_at", "2018-12-05 17:16:25.250532"], ["updated_at", "2018-12-05 17:16:25.250532"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.3ms)
Rendered users/sessions/new.html.erb within layouts/application (4.0ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:25.278218"], ["last_sign_in_at", "2018-12-05 17:16:25.278218"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:25.279227"], ["id", 3586]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3586], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 1.0ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by RoomsController#index as HTML

User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3586], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 1.6ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-05 17:16:25.316551"], ["updated_at", "2018-12-05 17:16:25.316551"], ["tipo_sala", "Coodernação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-05 17:16:25.319750"], ["updated_at", "2018-12-05 17:16:25.319750"], ["tipo_sala", "Predio CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-05 17:16:25.322442"], ["updated_at", "2018-12-05 17:16:25.322442"], ["tipo_sala", "Salas de Reunião"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$.z8XQIyCc137SKB/yhcrCeaayRq92avzdeLlnRYhgcp.APv.eu6qG"], ["created_at", "2018-12-05 17:16:25.358755"], ["updated_at", "2018-12-05 17:16:25.358755"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:25.384948"], ["last_sign_in_at", "2018-12-05 17:16:25.384948"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:25.385902"], ["id", 3587]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3587], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 17:16:25.406053"], ["updated_at", "2018-12-05 17:16:25.406053"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 17:16:25.409285"], ["updated_at", "2018-12-05 17:16:25.409285"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3587], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$FCQlansLizKmB4klB.qpgeKB0iHW9CWCLc15YoszMBQwzqZMsWH7m"], ["created_at", "2018-12-05 17:16:25.444050"], ["updated_at", "2018-12-05 17:16:25.444050"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.5ms)
Rendered users/sessions/new.html.erb within layouts/application (5.1ms)

Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:25.474089"], ["last_sign_in_at", "2018-12-05 17:16:25.474089"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:25.475241"], ["id", 3588]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3588], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 17:16:25.493991"], ["updated_at", "2018-12-05 17:16:25.493991"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 17:16:25.497374"], ["updated_at", "2018-12-05 17:16:25.497374"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3588], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$E/YTSK5stpDhWvoGMxeiCeyLb02yEZ2iCaImPyV7odFsJ.o39ZUOy"], ["created_at", "2018-12-05 17:16:25.539115"], ["updated_at", "2018-12-05 17:16:25.539115"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:25.564496"], ["last_sign_in_at", "2018-12-05 17:16:25.564496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:25.565579"], ["id", 3589]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3589], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.7ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 17:16:25.584401"], ["updated_at", "2018-12-05 17:16:25.584401"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 17:16:25.587984"], ["updated_at", "2018-12-05 17:16:25.587984"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3589], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.5ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3589], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3589], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.5ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3589], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3589], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.8ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-06", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3589], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-06' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 25ms (Views: 7.0ms | ActiveRecord: 2.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$NIOJgGLAK7SZCYUSL7VAJe4oU5nIuK19Oi/GpOlWbE8Ff.mFfltdW"], ["created_at", "2018-12-05 17:16:25.692269"], ["updated_at", "2018-12-05 17:16:25.692269"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:25.730301"], ["last_sign_in_at", "2018-12-05 17:16:25.730301"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:25.731201"], ["id", 3590]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3590], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (3.9ms)
Rendered users/registrations/new.html.erb within layouts/application (8.4ms)

Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$vAptdvl4Mc9yP24EkMqm9.qxHPmj/TVEARCZkQgUKHcdyQhGtWj8a"], ["created_at", "2018-12-05 17:16:25.821702"], ["updated_at", "2018-12-05 17:16:25.821702"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 17:16:25.824999"], ["last_sign_in_at", "2018-12-05 17:16:25.824999"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 17:16:25.825650"], ["id", 3591]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 50ms (ActiveRecord: 2.8ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3591], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 17ms (Views: 15.7ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$eXjb4sgzjwSg.b/7Qjw6ROBrDwbGHAPn2glJBQesVZuPJEMaVGG5S"], ["created_at", "2018-12-05 17:16:25.898522"], ["updated_at", "2018-12-05 17:16:25.898522"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:25.935044"], ["last_sign_in_at", "2018-12-05 17:16:25.935044"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:25.936181"], ["id", 3592]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3592], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms) Started GET “/users/3592/edit” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"3592"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3592], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (6.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 16ms (Views: 12.2ms | ActiveRecord: 0.8ms) Started PUT “/users/3592” for 127.0.0.1 at 2018-12-05 15:16:25 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"3592"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3592], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3592], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 3592], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-05 17:16:26.009155"], ["id", 3592]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 16ms (ActiveRecord: 2.6ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3592], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.7ms)

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$iVAabjb4G4TvyiODXgdEZupu81JT5SkMG4PS37NFxqUEfjRo2.xyG"], ["created_at", "2018-12-05 17:16:26.040996"], ["updated_at", "2018-12-05 17:16:26.040996"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:26.066978"], ["last_sign_in_at", "2018-12-05 17:16:26.066978"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:26.068006"], ["id", 3593]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3593], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 17:16:26.085853"], ["updated_at", "2018-12-05 17:16:26.085853"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3593], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 1.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3593], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 2.0ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3593], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3593], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3593], ["room_id", 1], ["created_at", "2018-12-05 17:16:26.145429"], ["updated_at", "2018-12-05 17:16:26.145429"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3593], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$ZWrl/TZrR.17T9URJ41sEOuMdnI4WOnXiEJhBa7BjVJVEk0cGWwZq"], ["created_at", "2018-12-05 17:16:26.171919"], ["updated_at", "2018-12-05 17:16:26.171919"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 17:16:26.199247"], ["last_sign_in_at", "2018-12-05 17:16:26.199247"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 17:16:26.200322"], ["id", 3594]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3594], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 17:16:26.218323"], ["updated_at", "2018-12-05 17:16:26.218323"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by RoomsController#index as HTML

User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3594], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 1.6ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3594], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 2.0ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3594], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3594], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3594], ["room_id", 1], ["created_at", "2018-12-05 17:16:26.277828"], ["updated_at", "2018-12-05 17:16:26.277828"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3594], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$rHEslOKPTLXWZCnjWj9LMu8UUUyzJ1scsbc.CDhKSTqQ0VlD4TgIW"], ["created_at", "2018-12-05 17:16:26.306313"], ["updated_at", "2018-12-05 17:16:26.306313"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.9ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (2.4ms)
Rendered password_resets/new.html.erb within layouts/application (5.5ms)

Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.7ms)
Rendered password_resets/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.5ms)

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$YMELnH9V11AT3OTPYtxIHOae7EhqjtybHypQ6yQfYlBSk.TvJciWi"], ["updated_at", "2018-12-05 17:16:26.375363"], ["id", 3595]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 15:16:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.9ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DJEsu6/E3lBfHyPovwgSuOCN3HfqAggrQxbMOZe8GZQmhtrJ7Fk3e"], ["created_at", "2018-12-05 18:14:49.238925"], ["updated_at", "2018-12-05 18:14:49.238925"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$l4ERfJHggfGNkBhQcK1YRe7bStMWbHsd52Ti0MTuz8cQJ9.FS8tOS"], ["created_at", "2018-12-05 18:14:49.250286"], ["updated_at", "2018-12-05 18:14:49.250286"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.5ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:49.286998"], ["updated_at", "2018-12-05 18:14:49.286998"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.5ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2971], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3597], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3597], ["room_id", 2971], ["created_at", "2018-12-05 18:14:49.364566"], ["updated_at", "2018-12-05 18:14:49.364566"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2798"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2798], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2971], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3597], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (3.9ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (1.8ms)

UserMailer#status_notification: processed outbound mail in 320.6ms Sent mail to 123@123.com (33.8ms) Date: Wed, 05 Dec 2018 16:14:49 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c081599b7255_25c81256f241767e@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081599afef5_25c81256f24175d2";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081599afef5_25c81256f24175d2 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c081599afef5_25c81256f24175d2 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c081599afef5_25c81256f24175d2–

Completed 302 Found in 371ms (ActiveRecord: 2.4ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jQntCLtYPxjUW07CsA4IjOZwijTlNz3ep3iXfU0RIhHqjd0fIgZ0i"], ["created_at", "2018-12-05 18:14:49.787127"], ["updated_at", "2018-12-05 18:14:49.787127"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hWuD3aqUQdkAlK3qDX75JObzPkgK41Yju9oAjzgI3bkR3Z1Sd4hHu"], ["created_at", "2018-12-05 18:14:49.795598"], ["updated_at", "2018-12-05 18:14:49.795598"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:49.799526"], ["updated_at", "2018-12-05 18:14:49.799526"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2972], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3599], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3599], ["room_id", 2972], ["created_at", "2018-12-05 18:14:49.808013"], ["updated_at", "2018-12-05 18:14:49.808013"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2799"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2799], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2972], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3599], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-05 18:14:49.818960"], ["id", 2799]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (5.9ms) Date: Wed, 05 Dec 2018 16:14:49 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c081599ca7ba_25c81256f24178ad@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081599c98b0_25c81256f24177a2";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081599c98b0_25c81256f24177a2 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c081599c98b0_25c81256f24177a2 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c081599c98b0_25c81256f24177a2–

Completed 302 Found in 21ms (ActiveRecord: 2.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tFDiKepGdJkAFvHjO7ZnfexCM7p6DudV0QWUJKP6Yz6iOCLdQk32i"], ["created_at", "2018-12-05 18:14:49.842770"], ["updated_at", "2018-12-05 18:14:49.842770"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hXUQh737zbmZHQ.88IqqAeSxOzwQhKkZ6h0avAI2Q3qqSBke5/4CG"], ["created_at", "2018-12-05 18:14:49.851318"], ["updated_at", "2018-12-05 18:14:49.851318"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:49.855514"], ["updated_at", "2018-12-05 18:14:49.855514"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2973], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3601], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3601], ["room_id", 2973], ["created_at", "2018-12-05 18:14:49.866736"], ["updated_at", "2018-12-05 18:14:49.866736"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.6ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IfeCRmAv.DWCtkA7alNgreKyH1c9t1cVZRLuni3hgs8eK.fPVk1GW"], ["created_at", "2018-12-05 18:14:49.884413"], ["updated_at", "2018-12-05 18:14:49.884413"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PhVCq2plLON1ZPGCoWJ3rOkfoCQgTnNCXp1FQ2TM2QCRei3TqPlNG"], ["created_at", "2018-12-05 18:14:49.892559"], ["updated_at", "2018-12-05 18:14:49.892559"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:49.896952"], ["updated_at", "2018-12-05 18:14:49.896952"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2974], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3603], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3603], ["room_id", 2974], ["created_at", "2018-12-05 18:14:49.905688"], ["updated_at", "2018-12-05 18:14:49.905688"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2801], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$A7uKo/xJIvyoFGmT7ZApb.H6Ujrn3bLnHoAYbVgC4XShE9r1NDzRC"], ["created_at", "2018-12-05 18:14:49.919618"], ["updated_at", "2018-12-05 18:14:49.919618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3604"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "pQpH4HKjRXzqYAyEaBSf2Q"], ["updated_at", "2018-12-05 18:14:49.928858"], ["id", 3604]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-05 18:14:49.933019"], ["reset_sent_at", "2018-12-05 18:14:49.932294"], ["id", 3604]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.6ms)

UserMailer#password_reset: processed outbound mail in 10.6ms Sent mail to teste@unb.com.br (5.9ms) Date: Wed, 05 Dec 2018 16:14:49 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c081599e79cb_25c81256f2418173@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081599e69cb_25c81256f241809d";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081599e69cb_25c81256f241809d Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/pQpH4HKjRXzqYAyEaBSf2Q/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c081599e69cb_25c81256f241809d Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/pQpH4HKjRXzqYAyEaBSf2Q/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c081599e69cb_25c81256f241809d–

Redirected to test.host/login Completed 302 Found in 28ms (ActiveRecord: 2.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$ICE7qosghJmGjM5NOinCEuFZ/CpogITppHO81xSoDqpMdgWpMaoyy"], ["created_at", "2018-12-05 18:14:49.961118"], ["updated_at", "2018-12-05 18:14:49.961118"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.3ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$JiHA5PSfKy5hQ67pH4JGjOQ57w1Fuzncvn4Zrk/ScwnQOfK7Xv2Vu"], ["created_at", "2018-12-05 18:14:49.982500"], ["updated_at", "2018-12-05 18:14:49.982500"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3606"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$qRijXpX3v6qtsTgia5/Pm.wz30N4WasHzMA85m9l0sB.MTarqvxIm"], ["updated_at", "2018-12-05 18:14:49.992769"], ["id", 3606]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 10ms (ActiveRecord: 2.1ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$JVSb8O/vy4cFyxZ3hcPvteNxUrK5gI8Uc6yLH4OqgMSLgbmHdLL3."], ["created_at", "2018-12-05 18:14:50.006449"], ["updated_at", "2018-12-05 18:14:50.006449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3607"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$DOz2HcKZfMCEJmkrf11mgOw3wJsoJ79nu3DmKnHXAZTpfe5shRR7y"], ["created_at", "2018-12-05 18:14:50.027092"], ["updated_at", "2018-12-05 18:14:50.027092"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3608"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.5ms)

Completed 200 OK in 19ms (Views: 2.4ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$VHDMOpjXZLtVw2b7lTeXW.Tvtl9OepLhRUqjHqGw6EHcvvhmHuj7S"], ["created_at", "2018-12-05 18:14:50.059569"], ["updated_at", "2018-12-05 18:14:50.059569"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3609"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$ERiLSe11ZjZOr1M2jcNFu.RfUyYoUqL86aI3yfwNwsyCb3fkXhUgW"], ["created_at", "2018-12-05 18:14:50.081178"], ["updated_at", "2018-12-05 18:14:50.081178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3610"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kwhUGvabCSgVyMHHIx8Ls.4Gej2IdgSfpJvH8djrd9oB0Q/7u9rim"], ["created_at", "2018-12-05 18:14:50.125220"], ["updated_at", "2018-12-05 18:14:50.125220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.7ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Grsnq5VT7qnBKGyM6XnCXuW1zO0kEdyrJbBMb4w3rmaBC88GO3Sky"], ["created_at", "2018-12-05 18:14:50.142615"], ["updated_at", "2018-12-05 18:14:50.142615"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.2ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$C4koP0ZyST7nmU2nJPrckuPHysx8aVSuD9ok13/4O15cCv9DMZur6"], ["created_at", "2018-12-05 18:14:50.163020"], ["updated_at", "2018-12-05 18:14:50.163020"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:50.167350"], ["updated_at", "2018-12-05 18:14:50.167350"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2975], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3613], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3613], ["room_id", 2975], ["created_at", "2018-12-05 18:14:50.177757"], ["updated_at", "2018-12-05 18:14:50.177757"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$WkQjvI6PDVBK90aNwVHVXeHL0rfNVh2oMI1wjNDE2dW/7Hgv1X3dW"], ["created_at", "2018-12-05 18:14:50.195620"], ["updated_at", "2018-12-05 18:14:50.195620"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:50.199966"], ["updated_at", "2018-12-05 18:14:50.199966"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2976], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3614], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3614], ["room_id", 2976], ["created_at", "2018-12-05 18:14:50.208098"], ["updated_at", "2018-12-05 18:14:50.208098"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DqXEy8jL6QjSFboG5E7EJuiN6bz0hLIC3aa1ZipPGYWDMEyCo.nCW"], ["created_at", "2018-12-05 18:14:50.270213"], ["updated_at", "2018-12-05 18:14:50.270213"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:50.274725"], ["updated_at", "2018-12-05 18:14:50.274725"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:14:50 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:50.287690"], ["last_sign_in_at", "2018-12-05 18:14:50.287690"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:50.288897"], ["id", 3615]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2977"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2977], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3615], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3615], ["room_id", 2977], ["created_at", "2018-12-05 18:14:50.307694"], ["updated_at", "2018-12-05 18:14:50.307694"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.0ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2977], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LalcT8GXBRtpv75b9jkuyOj1N0m3qOcdLiUrpngxb/J17kAPH6OI2"], ["created_at", "2018-12-05 18:14:50.323117"], ["updated_at", "2018-12-05 18:14:50.323117"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:50.328057"], ["updated_at", "2018-12-05 18:14:50.328057"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:14:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:50.332984"], ["last_sign_in_at", "2018-12-05 18:14:50.332984"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:50.334054"], ["id", 3616]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2978"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2978], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3616], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3616], ["room_id", 2978], ["created_at", "2018-12-05 18:14:50.345747"], ["updated_at", "2018-12-05 18:14:50.345747"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$skRFLuhIjkirD9d5b/D57uu2oq106Df.3qOti7SSis6SsaiRmjG0q"], ["created_at", "2018-12-05 18:14:50.359462"], ["updated_at", "2018-12-05 18:14:50.359462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:50.363968"], ["updated_at", "2018-12-05 18:14:50.363968"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:14:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:50.369393"], ["last_sign_in_at", "2018-12-05 18:14:50.369393"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:50.370486"], ["id", 3617]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2979", "user_id"=>"3617"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2979], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3617], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3617], ["room_id", 2979], ["created_at", "2018-12-05 18:14:50.382053"], ["updated_at", "2018-12-05 18:14:50.382053"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:14:50 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2979", "user_id"=>"3617"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3617], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2979], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3617], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3617], ["room_id", 2979], ["created_at", "2018-12-05 18:14:50.399101"], ["updated_at", "2018-12-05 18:14:50.399101"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$89uLJlgdu.Uq1fbKizwFgOWue/JvPg3FoK1.VBH1nl4uYFTn3Doqm"], ["created_at", "2018-12-05 18:14:50.412075"], ["updated_at", "2018-12-05 18:14:50.412075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:50.416827"], ["updated_at", "2018-12-05 18:14:50.416827"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:14:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:50.422589"], ["last_sign_in_at", "2018-12-05 18:14:50.422589"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:50.423689"], ["id", 3618]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2980", "user_id"=>"3618"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2980], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3618], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3618], ["room_id", 2980], ["created_at", "2018-12-05 18:14:50.435676"], ["updated_at", "2018-12-05 18:14:50.435676"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:14:50 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2980", "user_id"=>"3618"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3618], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2980], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3618], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3618], ["room_id", 2980], ["created_at", "2018-12-05 18:14:50.451614"], ["updated_at", "2018-12-05 18:14:50.451614"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.3ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2980], ["user_id", 3618], ["status", 2], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fi1.ypTJ7jI6D78Og6e83ugYMNh3wgPDC5E2vZdMWiMhU0EZvPqKi"], ["created_at", "2018-12-05 18:14:50.468311"], ["updated_at", "2018-12-05 18:14:50.468311"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:50.474846"], ["updated_at", "2018-12-05 18:14:50.474846"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:14:50 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:50.483189"], ["last_sign_in_at", "2018-12-05 18:14:50.483189"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:50.484182"], ["id", 3619]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2981", "user_id"=>"3619"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2981], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3619], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3619], ["room_id", 2981], ["created_at", "2018-12-05 18:14:50.495242"], ["updated_at", "2018-12-05 18:14:50.495242"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:14:50 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"2981", "user_id"=>"3619"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3619], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2981], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3619], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3619], ["room_id", 2981], ["created_at", "2018-12-05 18:14:50.510767"], ["updated_at", "2018-12-05 18:14:50.510767"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.0ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 2981], ["user_id", 3619], ["status", 1], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/Fp0r.pv0VjlMweaYsR1XOcibw2pAEgc06tL29tblJsEtK5NhAj7C"], ["created_at", "2018-12-05 18:14:50.524802"], ["updated_at", "2018-12-05 18:14:50.524802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:50.529810"], ["updated_at", "2018-12-05 18:14:50.529810"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:14:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:50.534706"], ["last_sign_in_at", "2018-12-05 18:14:50.534706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:50.535786"], ["id", 3620]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2982"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 2982], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ervcr5qfE6xc1LQcxBd/2uU7jkdW6KWOJpA4.ToFaRSVXH/zua2Xi"], ["created_at", "2018-12-05 18:14:50.552667"], ["updated_at", "2018-12-05 18:14:50.552667"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:50.556851"], ["updated_at", "2018-12-05 18:14:50.556851"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:14:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:50.561493"], ["last_sign_in_at", "2018-12-05 18:14:50.561493"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:50.562541"], ["id", 3621]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"2983"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/mJ3/5i5xjgmWVqkWd.lg.KsQEPXny7J3sxBEe/Xuo92awakITP7O"], ["created_at", "2018-12-05 18:14:50.579838"], ["updated_at", "2018-12-05 18:14:50.579838"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:50.584207"], ["updated_at", "2018-12-05 18:14:50.584207"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2984], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3622], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3622], ["room_id", 2984], ["created_at", "2018-12-05 18:14:50.592076"], ["updated_at", "2018-12-05 18:14:50.592076"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2984” for 127.0.0.1 at 2018-12-05 16:14:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:50.596418"], ["last_sign_in_at", "2018-12-05 18:14:50.596418"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:50.597434"], ["id", 3622]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"2984"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2984], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '2984')
Rendered appointments/show.html.erb within layouts/application (13.6ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 361ms (Views: 357.0ms | ActiveRecord: 1.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$syymR/DQSTxImbp1FKsmG..oJndCoGJuHgR8gfYAZpfXoGTwOH/nK"], ["created_at", "2018-12-05 18:14:50.977682"], ["updated_at", "2018-12-05 18:14:50.977682"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:50.983478"], ["updated_at", "2018-12-05 18:14:50.983478"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2985], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3623], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3623], ["room_id", 2985], ["created_at", "2018-12-05 18:14:50.992158"], ["updated_at", "2018-12-05 18:14:50.992158"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2813/edit” for 127.0.0.1 at 2018-12-05 16:14:50 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:50.997633"], ["last_sign_in_at", "2018-12-05 18:14:50.997633"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:50.999220"], ["id", 3623]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2813"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2813], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2c9p1vNLUmaZeW.gQVRbBOPYGWi7H05XlbWG9YJnB/ouDCKZ330tu"], ["created_at", "2018-12-05 18:14:51.028299"], ["updated_at", "2018-12-05 18:14:51.028299"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.032873"], ["last_sign_in_at", "2018-12-05 18:14:51.032873"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.033928"], ["id", 3624]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oJwwb/mWsrq7qrJvq2HMFeS3NBcYmkTIZ/xuX/dQ6rtSLdGJLiepq"], ["created_at", "2018-12-05 18:14:51.060264"], ["updated_at", "2018-12-05 18:14:51.060264"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.064867"], ["updated_at", "2018-12-05 18:14:51.064867"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2986], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3625], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3625], ["room_id", 2986], ["created_at", "2018-12-05 18:14:51.073313"], ["updated_at", "2018-12-05 18:14:51.073313"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2986], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3625], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3625], ["room_id", 2986], ["created_at", "2018-12-05 18:14:51.081634"], ["updated_at", "2018-12-05 18:14:51.081634"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.085974"], ["last_sign_in_at", "2018-12-05 18:14:51.085974"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.087078"], ["id", 3625]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3625]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.7ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 54ms (Views: 11.7ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lJOByAL6JvmzBU.KfaKDL.r4f/6CjychqS4uaJQY34AEr7.cUbcpi"], ["created_at", "2018-12-05 18:14:51.156176"], ["updated_at", "2018-12-05 18:14:51.156176"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.160861"], ["updated_at", "2018-12-05 18:14:51.160861"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2987], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3626], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3626], ["room_id", 2987], ["created_at", "2018-12-05 18:14:51.169485"], ["updated_at", "2018-12-05 18:14:51.169485"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2987], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3626], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3626], ["room_id", 2987], ["created_at", "2018-12-05 18:14:51.178422"], ["updated_at", "2018-12-05 18:14:51.178422"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.182749"], ["last_sign_in_at", "2018-12-05 18:14:51.182749"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.183856"], ["id", 3626]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3626]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lI3e1e..akX2WfaMOt4IZeBQ1c56BO7T2rWWV2qzK8FtcA8UyHQ1S"], ["created_at", "2018-12-05 18:14:51.207578"], ["updated_at", "2018-12-05 18:14:51.207578"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.212742"], ["updated_at", "2018-12-05 18:14:51.212742"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2988], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3627], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3627], ["room_id", 2988], ["created_at", "2018-12-05 18:14:51.220792"], ["updated_at", "2018-12-05 18:14:51.220792"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2818” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.225005"], ["last_sign_in_at", "2018-12-05 18:14:51.225005"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.226049"], ["id", 3627]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2818"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2818], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2818]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uzEVrSa5JVa8pi4LT41a4.m/VZN/EmnyVNuSq0tUeQII5zWEz21Qq"], ["created_at", "2018-12-05 18:14:51.248697"], ["updated_at", "2018-12-05 18:14:51.248697"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.253758"], ["updated_at", "2018-12-05 18:14:51.253758"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OlFM.B/UPft4zBK2vJPOAumYxCwDFp6iL.EGwPPmd2AKJGrt6qU3W"], ["created_at", "2018-12-05 18:14:51.261545"], ["updated_at", "2018-12-05 18:14:51.261545"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2989], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3629], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3629], ["room_id", 2989], ["created_at", "2018-12-05 18:14:51.270540"], ["updated_at", "2018-12-05 18:14:51.270540"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2819” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.275922"], ["last_sign_in_at", "2018-12-05 18:14:51.275922"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.276982"], ["id", 3628]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2819"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2819], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2989], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3629], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 9ms (ActiveRecord: 2.1ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sqFIADZJySmVvT6SYcuX5.xNtAE4YoGDF8SOgKVtjqRqd5Z7KuB4S"], ["created_at", "2018-12-05 18:14:51.303211"], ["updated_at", "2018-12-05 18:14:51.303211"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.307864"], ["updated_at", "2018-12-05 18:14:51.307864"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pJzkMGQvhfhHeGK9vj09VuBDN2Qgv7tVKoTMDJMxNTDj5vHo34nyy"], ["created_at", "2018-12-05 18:14:51.315261"], ["updated_at", "2018-12-05 18:14:51.315261"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2990], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3631], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3631], ["room_id", 2990], ["created_at", "2018-12-05 18:14:51.324089"], ["updated_at", "2018-12-05 18:14:51.324089"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2820” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.329798"], ["last_sign_in_at", "2018-12-05 18:14:51.329798"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.330954"], ["id", 3630]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2820"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2820], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2990], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3631], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$26sT/yMWw05J27Bt4nqYJuAgajW2dfJ0u4Rdno8P6hH9Bkfz704mC"], ["created_at", "2018-12-05 18:14:51.354677"], ["updated_at", "2018-12-05 18:14:51.354677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.361260"], ["updated_at", "2018-12-05 18:14:51.361260"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.m.kMjdD61.Eknj5dmQs3.5/ddL0XkWBpB1pR0JX.llmpPfUuudg6"], ["created_at", "2018-12-05 18:14:51.372584"], ["updated_at", "2018-12-05 18:14:51.372584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2991], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3633], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3633], ["room_id", 2991], ["created_at", "2018-12-05 18:14:51.381976"], ["updated_at", "2018-12-05 18:14:51.381976"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2821” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.387823"], ["last_sign_in_at", "2018-12-05 18:14:51.387823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.388843"], ["id", 3632]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2821"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2821], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2991], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3633], ["LIMIT", 1]]
SQL (0.8ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-05 18:14:51.401563"], ["id", 2821]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 5.4ms Sent mail to 123@123.com (7.3ms) Date: Wed, 05 Dec 2018 16:14:51 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c08159b64fc4_25c81256f2418828@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c08159b63cf1_25c81256f24187a5";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c08159b63cf1_25c81256f24187a5 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c08159b63cf1_25c81256f24187a5 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c08159b63cf1_25c81256f24187a5–

Completed 302 Found in 25ms (ActiveRecord: 2.5ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RS45hA35QhKFG/VPdg.nr.5obKnX5jWm.X3V6/Tvycl9lhrDhZ3Sm"], ["created_at", "2018-12-05 18:14:51.430915"], ["updated_at", "2018-12-05 18:14:51.430915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.436103"], ["updated_at", "2018-12-05 18:14:51.436103"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fLeqnkw2fq4WzY6a/1zg9Ob8mCFSdj0e20szZM0TYZ/D3XIlRDWGq"], ["created_at", "2018-12-05 18:14:51.444554"], ["updated_at", "2018-12-05 18:14:51.444554"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2992], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3635], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3635], ["room_id", 2992], ["created_at", "2018-12-05 18:14:51.454545"], ["updated_at", "2018-12-05 18:14:51.454545"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 18:14:51.458828"], ["id", 2822]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2992], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3635], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3635], ["room_id", 2992], ["created_at", "2018-12-05 18:14:51.469506"], ["updated_at", "2018-12-05 18:14:51.469506"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 18:14:51.473618"], ["id", 2823]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.477871"], ["last_sign_in_at", "2018-12-05 18:14:51.477871"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.478812"], ["id", 3634]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3635], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2992], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3635], ["LIMIT", 1]]
CACHE Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2992], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (9.1ms)
Rendered layouts/_header-admin.html.erb (3.8ms)

Completed 200 OK in 21ms (Views: 16.4ms | ActiveRecord: 2.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PRC9M3OIWsCo0m4WOlQ6J.ftFP9/EIhu/I9ioGcu8Q45XckKbmfw2"], ["created_at", "2018-12-05 18:14:51.514915"], ["updated_at", "2018-12-05 18:14:51.514915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.519556"], ["updated_at", "2018-12-05 18:14:51.519556"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YQZA5b367zNDPB4sBfToTeNvE0HbTqof3yRmfc53zrSoPalblsFK2"], ["created_at", "2018-12-05 18:14:51.528212"], ["updated_at", "2018-12-05 18:14:51.528212"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2993], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3637], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3637], ["room_id", 2993], ["created_at", "2018-12-05 18:14:51.537627"], ["updated_at", "2018-12-05 18:14:51.537627"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 18:14:51.541596"], ["id", 2824]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2993], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3637], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3637], ["room_id", 2993], ["created_at", "2018-12-05 18:14:51.550037"], ["updated_at", "2018-12-05 18:14:51.550037"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 18:14:51.553892"], ["id", 2825]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.557959"], ["last_sign_in_at", "2018-12-05 18:14:51.557959"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.558858"], ["id", 3636]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3637], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2993], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3637], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2993], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.2ms)
Rendered layouts/_header-admin.html.erb (2.1ms)

Completed 200 OK in 17ms (Views: 13.0ms | ActiveRecord: 1.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PRbu5PFQ2Ai91Wv93XgolOVDKluPpIit0.qW5FtAKrFvmUW9Z.6ZO"], ["created_at", "2018-12-05 18:14:51.599043"], ["updated_at", "2018-12-05 18:14:51.599043"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.604027"], ["last_sign_in_at", "2018-12-05 18:14:51.604027"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.605232"], ["id", 3638]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (31.7ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 40ms (Views: 38.7ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.5ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tn9aEtNRGWeylq8TkywcWe8LuVdRM7VmDFgjGDbZ0jJU9bqYl6B2G"], ["created_at", "2018-12-05 18:14:51.664735"], ["updated_at", "2018-12-05 18:14:51.664735"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.669718"], ["last_sign_in_at", "2018-12-05 18:14:51.669718"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.671083"], ["id", 3639]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mhBpa30aFics9fuWHD8mouCkGmA6h5GPgsCMWvSLVYJx5RTIsb8Oa"], ["created_at", "2018-12-05 18:14:51.688216"], ["updated_at", "2018-12-05 18:14:51.688216"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.693019"], ["last_sign_in_at", "2018-12-05 18:14:51.693019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.694039"], ["id", 3640]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jN.qf2FENgwNW56OSFdNu.XrzOA1m3C/S2BmxoPte6phHKjYZbOJW"], ["created_at", "2018-12-05 18:14:51.720960"], ["updated_at", "2018-12-05 18:14:51.720960"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.725420"], ["last_sign_in_at", "2018-12-05 18:14:51.725420"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.726404"], ["id", 3641]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:14:51 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DqsSfwkUEoCaXITTj1Inee6R.ejNBtChg84U4z0Vhcj5XIH4wnrQW"], ["created_at", "2018-12-05 18:14:51.763215"], ["updated_at", "2018-12-05 18:14:51.763215"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.767880"], ["updated_at", "2018-12-05 18:14:51.767880"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2994” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.772212"], ["last_sign_in_at", "2018-12-05 18:14:51.772212"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.773276"], ["id", 3642]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2994"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2994], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZQjy1KJwXhjwE3wMVgvcp.2hT9UmYuJUBbIP/pG9OsnnY5r1owvWi"], ["created_at", "2018-12-05 18:14:51.799023"], ["updated_at", "2018-12-05 18:14:51.799023"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.803913"], ["updated_at", "2018-12-05 18:14:51.803913"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2995” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.808179"], ["last_sign_in_at", "2018-12-05 18:14:51.808179"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.809249"], ["id", 3643]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"2995"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2995], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.831930"], ["updated_at", "2018-12-05 18:14:51.831930"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2996” for 127.0.0.1 at 2018-12-05 16:14:51 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"2996"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O0Aw7WeLJiGppLQ.3zPZHu7Ybf.zEMdBEvkO9uHGsA8yyWma0O.ta"], ["created_at", "2018-12-05 18:14:51.855107"], ["updated_at", "2018-12-05 18:14:51.855107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.859867"], ["updated_at", "2018-12-05 18:14:51.859867"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2997” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.864155"], ["last_sign_in_at", "2018-12-05 18:14:51.864155"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.865530"], ["id", 3644]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2997"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (5.0ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.889889"], ["updated_at", "2018-12-05 18:14:51.889889"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/2998” for 127.0.0.1 at 2018-12-05 16:14:51 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"2998"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p9z93lqI7yDWTPxjjfjt3uinZ3ILw3WPoOWRxq166OzkHAbPfgkXG"], ["created_at", "2018-12-05 18:14:51.907411"], ["updated_at", "2018-12-05 18:14:51.907411"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.911916"], ["updated_at", "2018-12-05 18:14:51.911916"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/2999/edit” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.916086"], ["last_sign_in_at", "2018-12-05 18:14:51.916086"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.917018"], ["id", 3645]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"2999"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2999], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.6ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 10.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kVN94uzRG.SV0A1jL7GOjOv2UYA6adRc7021Zx07YljAENboijYHS"], ["created_at", "2018-12-05 18:14:51.944445"], ["updated_at", "2018-12-05 18:14:51.944445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.948616"], ["updated_at", "2018-12-05 18:14:51.948616"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3000/edit” for 127.0.0.1 at 2018-12-05 16:14:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:51.952466"], ["last_sign_in_at", "2018-12-05 18:14:51.952466"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:51.953366"], ["id", 3646]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3000"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3000], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:51.975325"], ["updated_at", "2018-12-05 18:14:51.975325"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3001” for 127.0.0.1 at 2018-12-05 16:14:51 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3001"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IhGL6JX.NJLobzZjdte.J.7G0m/tEzUb8l75t3.1GuMNFaTDRy7d."], ["created_at", "2018-12-05 18:14:51.995732"], ["updated_at", "2018-12-05 18:14:51.995732"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.001411"], ["last_sign_in_at", "2018-12-05 18:14:52.001411"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.002605"], ["id", 3647]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.010599"], ["updated_at", "2018-12-05 18:14:52.010599"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m.ffelCcamcnr9/SOBlTOueH3zcf0PAgXCAVa5tFaH768mKN03mxy"], ["created_at", "2018-12-05 18:14:52.026074"], ["updated_at", "2018-12-05 18:14:52.026074"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.031477"], ["last_sign_in_at", "2018-12-05 18:14:52.031477"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.032622"], ["id", 3648]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.039095"], ["updated_at", "2018-12-05 18:14:52.039095"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eTIeNgcHpVQv94iB5S9ZR.XTHFMb3TOgqtGboJkryXaahlCtDYq62"], ["created_at", "2018-12-05 18:14:52.051527"], ["updated_at", "2018-12-05 18:14:52.051527"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.057144"], ["last_sign_in_at", "2018-12-05 18:14:52.057144"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.058051"], ["id", 3649]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kDZXb/lSrYerTsSVirP2t.lkmkD0nF/IGpeRCNsbdHzPuUq7H8Ebi"], ["created_at", "2018-12-05 18:14:52.077855"], ["updated_at", "2018-12-05 18:14:52.077855"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.083418"], ["last_sign_in_at", "2018-12-05 18:14:52.083418"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.084441"], ["id", 3650]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Lnq/Pqg3zBc/5Mv97pldI.sePvNOgB76X4xaixdE.X0KBP.qv/cre"], ["created_at", "2018-12-05 18:14:52.103262"], ["updated_at", "2018-12-05 18:14:52.103262"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.108631"], ["last_sign_in_at", "2018-12-05 18:14:52.108631"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.109714"], ["id", 3651]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v/F0nLOAYPQfKGg6RkVQ/.kI2Y1jPbcWq/.OfFX.J5qRbjf2N.ZMi"], ["created_at", "2018-12-05 18:14:52.123878"], ["updated_at", "2018-12-05 18:14:52.123878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.127441"], ["updated_at", "2018-12-05 18:14:52.127441"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3004” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.131552"], ["last_sign_in_at", "2018-12-05 18:14:52.131552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.132507"], ["id", 3652]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3004"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3004], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 18:14:52.140031"], ["id", 3004]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3004 Completed 302 Found in 7ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mSW/xoKEDFTeY8C1biQzWO1deF6JJpeeto1RJ1Xa/QpJbtlG4pqzu"], ["created_at", "2018-12-05 18:14:52.154199"], ["updated_at", "2018-12-05 18:14:52.154199"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.158957"], ["updated_at", "2018-12-05 18:14:52.158957"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3005” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.164282"], ["last_sign_in_at", "2018-12-05 18:14:52.164282"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.165426"], ["id", 3653]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3005"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3005], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 18:14:52.174579"], ["id", 3005]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3005 Completed 302 Found in 8ms (ActiveRecord: 1.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kFMb/sGF.Wd4.iI2VMAYp.eOVgb4JdwNlVXA2F738c299KxYikMrW"], ["created_at", "2018-12-05 18:14:52.189349"], ["updated_at", "2018-12-05 18:14:52.189349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.194020"], ["updated_at", "2018-12-05 18:14:52.194020"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3006” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.199053"], ["last_sign_in_at", "2018-12-05 18:14:52.199053"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.200139"], ["id", 3654]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3006"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3006], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 0.9ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bWAcDHA/wfx.pjkaumhfg.SMkNIxCXZM8TqAMgy91hakSvhpjKtUS"], ["created_at", "2018-12-05 18:14:52.230442"], ["updated_at", "2018-12-05 18:14:52.230442"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.235015"], ["updated_at", "2018-12-05 18:14:52.235015"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3007” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.241016"], ["last_sign_in_at", "2018-12-05 18:14:52.241016"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.242165"], ["id", 3655]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3007"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3007], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 1.1ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mM.J0.rjROzBgDWwl.jJHuuYuLoP6xI57Gl.ylBFhiebbCSt3YCqi"], ["created_at", "2018-12-05 18:14:52.272375"], ["updated_at", "2018-12-05 18:14:52.272375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.277978"], ["last_sign_in_at", "2018-12-05 18:14:52.277978"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.279176"], ["id", 3656]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4Xm09ZCwO0o0vQS13Jt9jegd5gsUX1xLzKxWk72aacbuDQnFuyy2a"], ["created_at", "2018-12-05 18:14:52.294998"], ["updated_at", "2018-12-05 18:14:52.294998"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.299588"], ["updated_at", "2018-12-05 18:14:52.299588"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3008” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.304322"], ["last_sign_in_at", "2018-12-05 18:14:52.304322"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.305283"], ["id", 3657]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3008"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3008], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3008]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OwJTH0E1PB3g4NGK3eU8pOhtBvqS0JiQoI.jpudJRSJL9TQzJVfIa"], ["created_at", "2018-12-05 18:14:52.326463"], ["updated_at", "2018-12-05 18:14:52.326463"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.330949"], ["updated_at", "2018-12-05 18:14:52.330949"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3009” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.335878"], ["last_sign_in_at", "2018-12-05 18:14:52.335878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.336986"], ["id", 3658]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3009"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3009], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3009]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tBG3UQMvjk3LBv9xKljhN.NtS6nDU6qWxychX4S4YlYLq/a2feoGi"], ["created_at", "2018-12-05 18:14:52.357548"], ["updated_at", "2018-12-05 18:14:52.357548"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.362266"], ["updated_at", "2018-12-05 18:14:52.362266"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3010” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.366957"], ["last_sign_in_at", "2018-12-05 18:14:52.366957"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.368139"], ["id", 3659]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3010"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NaJfjbP1l4.OahXXoybomeZ5yS5Ta6c1CqgPXCuw9TCxOkIHiGQ/a"], ["created_at", "2018-12-05 18:14:52.385259"], ["updated_at", "2018-12-05 18:14:52.385259"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.390007"], ["updated_at", "2018-12-05 18:14:52.390007"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3011” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.394527"], ["last_sign_in_at", "2018-12-05 18:14:52.394527"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.395736"], ["id", 3660]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3011"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DZfxXHiSVUMUKxP5i0VkVeBhi7uDTIxpUASyS1m2.aeJ/P41GNVEW"], ["created_at", "2018-12-05 18:14:52.412181"], ["updated_at", "2018-12-05 18:14:52.412181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.416767"], ["last_sign_in_at", "2018-12-05 18:14:52.416767"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.417721"], ["id", 3661]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rkxtbGpIN6/ApW/jbUAyeusCmEWzIy88G0aQZ4jc5OkHHo3BOZKUG"], ["created_at", "2018-12-05 18:14:52.448034"], ["updated_at", "2018-12-05 18:14:52.448034"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.452616"], ["updated_at", "2018-12-05 18:14:52.452616"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.456593"], ["updated_at", "2018-12-05 18:14:52.456593"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.460330"], ["updated_at", "2018-12-05 18:14:52.460330"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (1.7ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3012], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3662], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3662], ["room_id", 3012], ["created_at", "2018-12-05 18:14:52.470971"], ["updated_at", "2018-12-05 18:14:52.470971"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.475594"], ["last_sign_in_at", "2018-12-05 18:14:52.475594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.476958"], ["id", 3662]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 42ms (Views: 9.1ms | ActiveRecord: 1.8ms)

Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$H9kdfNiSTnCUWhvuqPZHiOKG6RYkAgLdo0Pz1ox3ZfsbkdZKG145W"], ["created_at", "2018-12-05 18:14:52.537483"], ["updated_at", "2018-12-05 18:14:52.537483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.542394"], ["updated_at", "2018-12-05 18:14:52.542394"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.546706"], ["updated_at", "2018-12-05 18:14:52.546706"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:14:52.550820"], ["updated_at", "2018-12-05 18:14:52.550820"], ["tipo_sala", "palestras"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3015], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3663], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3663], ["room_id", 3015], ["created_at", "2018-12-05 18:14:52.560129"], ["updated_at", "2018-12-05 18:14:52.560129"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-05 16:14:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:14:52.564761"], ["last_sign_in_at", "2018-12-05 18:14:52.564761"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:14:52.565880"], ["id", 3663]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$TxIte0m4XLFOnnxVin742uipkbBr4kW8FzVDSUpnGQHsb7JHKRN32"], ["created_at", "2018-12-05 18:15:07.741258"], ["updated_at", "2018-12-05 18:15:07.741258"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (20.8ms)
Rendered users/sessions/new.html.erb within layouts/application (330.7ms)

Completed 200 OK in 352ms (Views: 340.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:08.204119"], ["last_sign_in_at", "2018-12-05 18:15:08.204119"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:08.205483"], ["id", 3664]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 20ms (ActiveRecord: 3.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3664], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (8.5ms)
Rendered layouts/_header-admin.html.erb (8.0ms)

Completed 200 OK in 29ms (Views: 26.6ms | ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3664], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (5.9ms)
Rendered layouts/_header-admin.html.erb (2.7ms)

Completed 200 OK in 22ms (Views: 19.1ms | ActiveRecord: 0.9ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by RoomsController#new as HTML

User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3664], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (18.1ms)
Rendered layouts/_header-admin.html.erb (4.5ms)

Completed 200 OK in 78ms (Views: 33.1ms | ActiveRecord: 7.4ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3664], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3664], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (6.7ms)
Rendered layouts/_header-admin.html.erb (3.4ms)

Completed 200 OK in 19ms (Views: 15.6ms | ActiveRecord: 0.9ms)

 (0.7ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$EyKIKEYS0dDA/YC8lSvw3.1ZaxBVXUKKI9LaOZv3Oluk7kx9u/EXe"], ["created_at", "2018-12-05 18:15:08.464228"], ["updated_at", "2018-12-05 18:15:08.464228"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (4.0ms)
Rendered users/sessions/new.html.erb within layouts/application (10.3ms)

Completed 200 OK in 22ms (Views: 19.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:08.510757"], ["last_sign_in_at", "2018-12-05 18:15:08.510757"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:08.511935"], ["id", 3665]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3665], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3665], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.0ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.9ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by RoomsController#new as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3665], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 9.1ms | ActiveRecord: 0.7ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3665], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3665], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.4ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.5ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$aqzKKbXkEQVDcSf/SqmKPea3oSI6SMRTztDXrwY/2IBRB9Gxk6Cvu"], ["created_at", "2018-12-05 18:15:08.626848"], ["updated_at", "2018-12-05 18:15:08.626848"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (3.0ms)
Rendered users/sessions/new.html.erb within layouts/application (5.0ms)

Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:08.660444"], ["last_sign_in_at", "2018-12-05 18:15:08.660444"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:08.661718"], ["id", 3666]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3666], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.9ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 1.1ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)

 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$uyccGHXUjGiT4RHOEa9YJOe25aIu2U.CxtlW2pA52OUXHoajguk1i"], ["created_at", "2018-12-05 18:15:08.707510"], ["updated_at", "2018-12-05 18:15:08.707510"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 5ms (ActiveRecord: 1.0ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.3ms)
Rendered users/sessions/new.html.erb within layouts/application (3.9ms)

Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ZogzzIXkjG4b.LMbDwRBIe.8ON//V.VlOQXo3uzC5AjQN8Qj288x6"], ["created_at", "2018-12-05 18:15:08.759823"], ["updated_at", "2018-12-05 18:15:08.759823"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:08.785365"], ["last_sign_in_at", "2018-12-05 18:15:08.785365"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:08.786415"], ["id", 3668]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3668], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.8ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:15:08.807601"], ["updated_at", "2018-12-05 18:15:08.807601"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3668], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 12ms (Views: 7.6ms | ActiveRecord: 1.4ms) Started GET “/appointments/3018” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3018"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3018], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3018')
Rendered appointments/show.html.erb within layouts/application (13.2ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3668], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 34ms (Views: 17.0ms | ActiveRecord: 5.4ms) Started POST “/appointments.3018” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3668], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3018], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3668], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 3668], ["room_id", 3018], ["created_at", "2018-12-05 18:15:08.926611"], ["updated_at", "2018-12-05 18:15:08.926611"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 40ms (ActiveRecord: 6.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3668], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$CyLfRjXkfkyNBYXy0QKzX.FvvxWvHtx7saKjkV8jTTljimjqEMJR2"], ["created_at", "2018-12-05 18:15:08.955182"], ["updated_at", "2018-12-05 18:15:08.955182"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:08.980653"], ["last_sign_in_at", "2018-12-05 18:15:08.980653"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:08.981553"], ["id", 3669]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3669], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:15:09.001951"], ["updated_at", "2018-12-05 18:15:09.001951"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3019], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3669], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3669], ["room_id", 3019], ["created_at", "2018-12-05 18:15:09.013015"], ["updated_at", "2018-12-05 18:15:09.013015"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3669], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 1.2ms) Started GET “/appointments/3019” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3019"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3019], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3019')
Rendered appointments/show.html.erb within layouts/application (7.6ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3669], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 17ms (Views: 12.7ms | ActiveRecord: 2.0ms) Started POST “/appointments.3019” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3669], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3019], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3669], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 3669], ["room_id", 3019], ["created_at", "2018-12-05 18:15:09.091776"], ["updated_at", "2018-12-05 18:15:09.091776"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3669], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$npSl1aJ0v5qUlbZWId2ilOF/H4upHmjDfZcNxxdsUT38WhL0QMIuW"], ["created_at", "2018-12-05 18:15:09.123300"], ["updated_at", "2018-12-05 18:15:09.123300"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:09.148398"], ["last_sign_in_at", "2018-12-05 18:15:09.148398"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:09.149448"], ["id", 3670]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3670], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:15:09.168825"], ["updated_at", "2018-12-05 18:15:09.168825"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3020], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3670], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3670], ["room_id", 3020], ["created_at", "2018-12-05 18:15:09.180325"], ["updated_at", "2018-12-05 18:15:09.180325"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3670], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3670]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 20ms (Views: 8.4ms | ActiveRecord: 1.3ms) Started DELETE “/appointments/2831” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2831"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2831], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2831]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3670], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3670]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$TCDZ74wG8qEo5SxJ74UrKOSSD6tnZS28Ez0POvfcp7Ptf6qif0O66"], ["created_at", "2018-12-05 18:15:09.247935"], ["updated_at", "2018-12-05 18:15:09.247935"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:09.274029"], ["last_sign_in_at", "2018-12-05 18:15:09.274029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:09.275024"], ["id", 3671]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3671], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 18:15:09.293541"], ["updated_at", "2018-12-05 18:15:09.293541"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3021], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3671], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 3671], ["room_id", 3021], ["created_at", "2018-12-05 18:15:09.304791"], ["updated_at", "2018-12-05 18:15:09.304791"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3671], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3671]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 9.1ms | ActiveRecord: 1.4ms) Started DELETE “/appointments/2832” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2832"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2832], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2832]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.8ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3671], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3671]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$sGdxaTy/z9aPVKe.cceAIuB07CdJSPl7eXzmYbo0fVMLFjvYLFLWe"], ["created_at", "2018-12-05 18:15:09.363903"], ["updated_at", "2018-12-05 18:15:09.363903"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:09.390647"], ["last_sign_in_at", "2018-12-05 18:15:09.390647"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:09.391587"], ["id", 3672]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3672], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.7ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-05 18:15:09.409533"], ["updated_at", "2018-12-05 18:15:09.409533"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-05 18:15:09.412400"], ["updated_at", "2018-12-05 18:15:09.412400"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3672], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.3ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3672], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 13ms (Views: 9.9ms | ActiveRecord: 1.5ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (1.1ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3672], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (2.1ms)

Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 1.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$2uePjH7af2saXhatDP3Us.F6ASmpkmGC9Ow4hHsO0ydaWiSfHFaLy"], ["created_at", "2018-12-05 18:15:09.480476"], ["updated_at", "2018-12-05 18:15:09.480476"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:09.516793"], ["last_sign_in_at", "2018-12-05 18:15:09.516793"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:09.517880"], ["id", 3673]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3673], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.6ms)
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3673], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 1.2ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$HkptC.IisYKAEkwvVOfegOYLx6TeCtXrgzVAf9wt30NUaDqOt3KGG"], ["created_at", "2018-12-05 18:15:09.602273"], ["updated_at", "2018-12-05 18:15:09.602273"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:09.626758"], ["last_sign_in_at", "2018-12-05 18:15:09.626758"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:09.627518"], ["id", 3674]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3674], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:15:09.647330"], ["updated_at", "2018-12-05 18:15:09.647330"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3024], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3674], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3674], ["room_id", 3024], ["created_at", "2018-12-05 18:15:09.657487"], ["updated_at", "2018-12-05 18:15:09.657487"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3674], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 1.3ms) Started GET “/appointments/3024” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3024"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3024], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3024')
Rendered appointments/show.html.erb within layouts/application (7.9ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3674], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 17ms (Views: 12.9ms | ActiveRecord: 2.0ms) Started POST “/appointments.3024” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3674], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3024], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3674], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 3674], ["room_id", 3024], ["created_at", "2018-12-05 18:15:09.726004"], ["updated_at", "2018-12-05 18:15:09.726004"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3674], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$y2INoO5Av9OWZkUQ3/abkuoUDNUIpcSxdxnxSm.7pFcTVu7xKg4fq"], ["created_at", "2018-12-05 18:15:09.755959"], ["updated_at", "2018-12-05 18:15:09.755959"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (4.2ms)

Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:09.784531"], ["last_sign_in_at", "2018-12-05 18:15:09.784531"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:09.785897"], ["id", 3675]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3675], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:15:09.806045"], ["updated_at", "2018-12-05 18:15:09.806045"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3025], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3675], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3675], ["room_id", 3025], ["created_at", "2018-12-05 18:15:09.817374"], ["updated_at", "2018-12-05 18:15:09.817374"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3675], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3675]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 7.1ms | ActiveRecord: 1.3ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$jIkRA0JBm2iQRsElVuCwTef81mE8gUH0IWJND3STYZrhGdQ6RRD8S"], ["created_at", "2018-12-05 18:15:09.856469"], ["updated_at", "2018-12-05 18:15:09.856469"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:09.891157"], ["last_sign_in_at", "2018-12-05 18:15:09.891157"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:09.892117"], ["id", 3676]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3676], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 18:15:09.909146"], ["updated_at", "2018-12-05 18:15:09.909146"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3026], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3676], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 3676], ["room_id", 3026], ["created_at", "2018-12-05 18:15:09.918440"], ["updated_at", "2018-12-05 18:15:09.918440"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3676], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3676]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Mwpzo61IFsboelV2UL49p.P0T6a7QiZDpULiXvY1.Zc5I4YB1oqO6"], ["created_at", "2018-12-05 18:15:09.952996"], ["updated_at", "2018-12-05 18:15:09.952996"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:09.977842"], ["last_sign_in_at", "2018-12-05 18:15:09.977842"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:09.978836"], ["id", 3677]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:09 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3677], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$injz0TweuZb6MbRcq8MMEOo9pdVntlFwaYQlNmV6ZUVShX4oDqHpW"], ["created_at", "2018-12-05 18:15:10.009477"], ["updated_at", "2018-12-05 18:15:10.009477"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:10.034666"], ["last_sign_in_at", "2018-12-05 18:15:10.034666"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:10.035891"], ["id", 3678]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3678], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:15:10.054137"], ["updated_at", "2018-12-05 18:15:10.054137"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:15:10.057655"], ["updated_at", "2018-12-05 18:15:10.057655"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3678], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 1.5ms) Started GET “/appointments/3027” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3027"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3027], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3027')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3678], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 1.9ms) Started POST “/appointments.3027” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3678], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3027], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3678], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 3678], ["room_id", 3027], ["created_at", "2018-12-05 18:15:10.124236"], ["updated_at", "2018-12-05 18:15:10.124236"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3678], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.6ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$HuSaxDzgF.TP4/1ULQ6wBOkyrK8EkcDn04yMlETt8/hphXxqJ/Jd2"], ["created_at", "2018-12-05 18:15:10.153025"], ["updated_at", "2018-12-05 18:15:10.153025"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:10.178570"], ["last_sign_in_at", "2018-12-05 18:15:10.178570"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:10.179511"], ["id", 3679]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3679], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:15:10.197937"], ["updated_at", "2018-12-05 18:15:10.197937"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:15:10.201066"], ["updated_at", "2018-12-05 18:15:10.201066"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3679], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 1.2ms) Started GET “/appointments/3029” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3029"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3029], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3029')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3679], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 2.0ms) Started POST “/appointments.3029” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3679], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3679], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$W3Ub.B.IigXIwuyg3PRh7u9bSmeOGNtt1QnAYze6zgdMhZUQed7yi"], ["created_at", "2018-12-05 18:15:10.295510"], ["updated_at", "2018-12-05 18:15:10.295510"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.2ms)
Rendered users/sessions/new.html.erb within layouts/application (4.0ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:10.321020"], ["last_sign_in_at", "2018-12-05 18:15:10.321020"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:10.321932"], ["id", 3680]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3680], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-05 18:15:10.339106"], ["updated_at", "2018-12-05 18:15:10.339106"], ["tipo_sala", "tipoTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3680], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.7ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3680], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 1.3ms) Started DELETE “/rooms/3031” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3031"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3680], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3031], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3031]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3680], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$I1kIOQNyWIZwColXkS4t5ehn5uwoJOog6hIw2y7Y1lWAz/OxoGDRC"], ["created_at", "2018-12-05 18:15:10.407516"], ["updated_at", "2018-12-05 18:15:10.407516"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-05 18:15:10.411114"], ["updated_at", "2018-12-05 18:15:10.411114"], ["tipo_sala", "tipoTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:10.448506"], ["last_sign_in_at", "2018-12-05 18:15:10.448506"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:10.449493"], ["id", 3681]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3681], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.8ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3681], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.1ms | ActiveRecord: 1.4ms) Started GET “/rooms/3032/edit” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3032"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3681], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3032], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 14ms (Views: 8.4ms | ActiveRecord: 1.3ms) Started PATCH “/rooms/3032” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"3032"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3681], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3032], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 14ms (Views: 7.1ms | ActiveRecord: 1.6ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$KN.g6OXwwfzL7mcjKiQiT.CbdI1gJGc5IGfasZt5zPjqNWCH/ixu2"], ["created_at", "2018-12-05 18:15:10.561626"], ["updated_at", "2018-12-05 18:15:10.561626"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$H9lMcnuEh4ul4l.V1.M0LO4MiqNJY2yxxrhQPOUvg10S7olNwfRMG"], ["created_at", "2018-12-05 18:15:10.582772"], ["updated_at", "2018-12-05 18:15:10.582772"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.2ms)
Rendered users/sessions/new.html.erb within layouts/application (4.3ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:10.609729"], ["last_sign_in_at", "2018-12-05 18:15:10.609729"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:10.610724"], ["id", 3683]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3683], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.8ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3683], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 1.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-05 18:15:10.651917"], ["updated_at", "2018-12-05 18:15:10.651917"], ["tipo_sala", "Coodernação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-05 18:15:10.655191"], ["updated_at", "2018-12-05 18:15:10.655191"], ["tipo_sala", "Predio CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-05 18:15:10.658139"], ["updated_at", "2018-12-05 18:15:10.658139"], ["tipo_sala", "Salas de Reunião"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$U/pLdHHZpDQuM76lsIiedueTJKputa1jFvlnyJqPttU3.spzPhCb6"], ["created_at", "2018-12-05 18:15:10.693997"], ["updated_at", "2018-12-05 18:15:10.693997"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:10.719790"], ["last_sign_in_at", "2018-12-05 18:15:10.719790"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:10.720863"], ["id", 3684]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3684], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:15:10.740333"], ["updated_at", "2018-12-05 18:15:10.740333"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:15:10.743798"], ["updated_at", "2018-12-05 18:15:10.743798"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3684], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$LWJwOaQp93eGQKPwB3CUnO/7mdopGXsHQbIbJn.KPtevtFRTtQkAS"], ["created_at", "2018-12-05 18:15:10.783880"], ["updated_at", "2018-12-05 18:15:10.783880"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:10.811561"], ["last_sign_in_at", "2018-12-05 18:15:10.811561"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:10.812716"], ["id", 3685]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3685], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.5ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 1.0ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:15:10.832560"], ["updated_at", "2018-12-05 18:15:10.832560"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:15:10.836038"], ["updated_at", "2018-12-05 18:15:10.836038"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3685], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$IhTcrHvHLE2Yv8yyEHsuYeudz4LRgKifo46jAipnwv3JJd2yYAvEe"], ["created_at", "2018-12-05 18:15:10.877781"], ["updated_at", "2018-12-05 18:15:10.877781"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:10.904874"], ["last_sign_in_at", "2018-12-05 18:15:10.904874"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:10.905966"], ["id", 3686]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3686], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:15:10.924826"], ["updated_at", "2018-12-05 18:15:10.924826"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:15:10.928388"], ["updated_at", "2018-12-05 18:15:10.928388"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3686], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3686], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3686], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3686], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3686], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 0.8ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-05 16:15:10 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-06", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3686], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-06' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 23ms (Views: 6.5ms | ActiveRecord: 2.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$3XTaZ3IJI0H.Qq4QPhsB/uW.W0KL.NF60B98mTcOZcl906K5eR03i"], ["created_at", "2018-12-05 18:15:11.040313"], ["updated_at", "2018-12-05 18:15:11.040313"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:11.078323"], ["last_sign_in_at", "2018-12-05 18:15:11.078323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:11.079217"], ["id", 3687]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3687], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (2.3ms)
Rendered users/registrations/new.html.erb within layouts/application (4.8ms)

Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$AjyVxpx9G7JRCbTAd/6WzunyyP3wB.LDp2Cp2/fK/iwhLyE7I.qzi"], ["created_at", "2018-12-05 18:15:11.184423"], ["updated_at", "2018-12-05 18:15:11.184423"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:15:11.187388"], ["last_sign_in_at", "2018-12-05 18:15:11.187388"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:15:11.188229"], ["id", 3688]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 14ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3688], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 1.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$phuJBRHlHJCn8X45yIxFkOr1lKVfxqYeKxy5LQqpyqDyLSHosm38O"], ["created_at", "2018-12-05 18:15:11.217644"], ["updated_at", "2018-12-05 18:15:11.217644"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.9ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (4.0ms)

Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:11.256226"], ["last_sign_in_at", "2018-12-05 18:15:11.256226"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:11.257283"], ["id", 3689]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3689], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.7ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.9ms) Started GET “/users/3689/edit” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"3689"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3689], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (5.4ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 0.9ms) Started PUT “/users/3689” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"3689"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3689], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3689], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 3689], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-05 18:15:11.329343"], ["id", 3689]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3689], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.8ms)

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$XenXFnlZCcFJypWURYydyebJdPwfsYHi7gobGWS2ig4U1BAFRgOfS"], ["created_at", "2018-12-05 18:15:11.376048"], ["updated_at", "2018-12-05 18:15:11.376048"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:11.402372"], ["last_sign_in_at", "2018-12-05 18:15:11.402372"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:11.403361"], ["id", 3690]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3690], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 18:15:11.422425"], ["updated_at", "2018-12-05 18:15:11.422425"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by RoomsController#index as HTML

User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3690], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 12ms (Views: 7.1ms | ActiveRecord: 1.6ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (3.4ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3690], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 9.2ms | ActiveRecord: 1.9ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3690], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3690], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3690], ["room_id", 1], ["created_at", "2018-12-05 18:15:11.489739"], ["updated_at", "2018-12-05 18:15:11.489739"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 3.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3690], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$GhgLhr2TKuIsB6boCmZrXuuiSBLZvUurYb2E7ihKiJ0FrEs8KNoo6"], ["created_at", "2018-12-05 18:15:11.520201"], ["updated_at", "2018-12-05 18:15:11.520201"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.3ms)
Rendered users/sessions/new.html.erb within layouts/application (4.8ms)

Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:15:11.548975"], ["last_sign_in_at", "2018-12-05 18:15:11.548975"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:15:11.550081"], ["id", 3691]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3691], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.6ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 18:15:11.571276"], ["updated_at", "2018-12-05 18:15:11.571276"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3691], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (5.0ms)
Rendered layouts/_header-user.html.erb (10.7ms)

Completed 200 OK in 26ms (Views: 21.7ms | ActiveRecord: 1.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (4.6ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3691], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.8ms)

Completed 200 OK in 18ms (Views: 13.5ms | ActiveRecord: 2.2ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3691], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3691], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3691], ["room_id", 1], ["created_at", "2018-12-05 18:15:11.672107"], ["updated_at", "2018-12-05 18:15:11.672107"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 4.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3691], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.4ms)
Rendered layouts/_header-admin.html.erb (3.5ms)

Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$5v.OSlOtzRWTcTam1X9vf.NI/Il3wjKsbJt8K1ZuSoZgtyrHd6jbu"], ["created_at", "2018-12-05 18:15:11.718556"], ["updated_at", "2018-12-05 18:15:11.718556"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (2.0ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.8ms)
Rendered users/sessions/new.html.erb within layouts/application (7.4ms)

Completed 200 OK in 14ms (Views: 11.8ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (2.5ms)
Rendered password_resets/new.html.erb within layouts/application (8.1ms)

Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (1.7ms)
Rendered password_resets/new.html.erb within layouts/application (4.2ms)

Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.6ms)

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$OfwYA33KH7sSkVVx2c5Td.VftkaQyra7GBMdz1wWZpd2m.XL5H8Pa"], ["updated_at", "2018-12-05 18:15:11.831755"], ["id", 3692]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:15:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AYqpusAiNn7u/7aW3dNXKO0ygd3GeyUpx5DpYsadAJ2BLJ/ZRNccS"], ["created_at", "2018-12-05 18:21:28.767971"], ["updated_at", "2018-12-05 18:21:28.767971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3aHoWKbuu8mjzGaWgcjSMeKE64PiIZhAJKfFfy4OTp2m656DwWW0a"], ["created_at", "2018-12-05 18:21:28.776706"], ["updated_at", "2018-12-05 18:21:28.776706"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:28.810148"], ["updated_at", "2018-12-05 18:21:28.810148"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.5ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3042], ["LIMIT", 1]]
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3694], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3694], ["room_id", 3042], ["created_at", "2018-12-05 18:21:28.858823"], ["updated_at", "2018-12-05 18:21:28.858823"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2840"}
Appointment Load (0.9ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2840], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3042], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3694], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.6ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.6ms)

UserMailer#status_notification: processed outbound mail in 354.9ms Sent mail to 123@123.com (11.3ms) Date: Wed, 05 Dec 2018 16:21:29 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0817293c116_27a810a6f1c9305@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0817293a284_27a810a6f1c929ec";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0817293a284_27a810a6f1c929ec Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c0817293a284_27a810a6f1c929ec Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c0817293a284_27a810a6f1c929ec–

Completed 302 Found in 379ms (ActiveRecord: 2.6ms)

 (0.6ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IU1PEGm4ZEL6aVfesWEbeu9nqfcAGYI6Yqx/HtiiymisrbvRbHU1i"], ["created_at", "2018-12-05 18:21:29.261911"], ["updated_at", "2018-12-05 18:21:29.261911"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$h32NlhSDpyBcQ1l0V1kIQe83UgkdX6tDM/lpruVxzwIvbMINrmsqG"], ["created_at", "2018-12-05 18:21:29.270055"], ["updated_at", "2018-12-05 18:21:29.270055"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:29.274193"], ["updated_at", "2018-12-05 18:21:29.274193"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3043], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3696], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3696], ["room_id", 3043], ["created_at", "2018-12-05 18:21:29.282419"], ["updated_at", "2018-12-05 18:21:29.282419"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2841"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2841], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3043], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3696], ["LIMIT", 1]]
SQL (0.8ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-05 18:21:29.294338"], ["id", 2841]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms Sent mail to 123@123.com (5.9ms) Date: Wed, 05 Dec 2018 16:21:29 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0817294a772_27a810a6f1c932cb@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081729497fa_27a810a6f1c931c0";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081729497fa_27a810a6f1c931c0 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c081729497fa_27a810a6f1c931c0 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c081729497fa_27a810a6f1c931c0–

Completed 302 Found in 22ms (ActiveRecord: 3.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qr8pOEnmYmiOakcUqc4jCOsOvXaVQb2in0Fh5HsVWOrH2iDAn0tBK"], ["created_at", "2018-12-05 18:21:29.318873"], ["updated_at", "2018-12-05 18:21:29.318873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$f8uZ.upytetrAYwdV.Nn4..96rsaos88tlHIGE6CSGHDhfT5vc/AW"], ["created_at", "2018-12-05 18:21:29.327013"], ["updated_at", "2018-12-05 18:21:29.327013"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:29.331306"], ["updated_at", "2018-12-05 18:21:29.331306"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3044], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3698], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3698], ["room_id", 3044], ["created_at", "2018-12-05 18:21:29.339569"], ["updated_at", "2018-12-05 18:21:29.339569"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nFjzaTEzY0jCuWyHufFiXeYtaVNTe9910nKWW08IXNAzFguyvYtmi"], ["created_at", "2018-12-05 18:21:29.356516"], ["updated_at", "2018-12-05 18:21:29.356516"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yr1akF0bGTJ0nc7mLJ/CdOYQgx4E5jC5R7ENW/9UfQVZhnbAU6rem"], ["created_at", "2018-12-05 18:21:29.365016"], ["updated_at", "2018-12-05 18:21:29.365016"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:29.369368"], ["updated_at", "2018-12-05 18:21:29.369368"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3045], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3700], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3700], ["room_id", 3045], ["created_at", "2018-12-05 18:21:29.377852"], ["updated_at", "2018-12-05 18:21:29.377852"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2843], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$H7vgIznFagUh.nS5xzHaQue5oWYJZl5smpYzPQpqt8ZSfj4.FJDdG"], ["created_at", "2018-12-05 18:21:29.390492"], ["updated_at", "2018-12-05 18:21:29.390492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3701"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "mN4FTuiRqCal6O_tBrYDZw"], ["updated_at", "2018-12-05 18:21:29.399036"], ["id", 3701]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-05 18:21:29.402542"], ["reset_sent_at", "2018-12-05 18:21:29.401888"], ["id", 3701]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.6ms)

UserMailer#password_reset: processed outbound mail in 10.6ms Sent mail to teste@unb.com.br (5.8ms) Date: Wed, 05 Dec 2018 16:21:29 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c0817296602a_27a810a6f1c9358d@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0817296505a_27a810a6f1c9343b";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0817296505a_27a810a6f1c9343b Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/mN4FTuiRqCal6O_tBrYDZw/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c0817296505a_27a810a6f1c9343b Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/mN4FTuiRqCal6O_tBrYDZw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c0817296505a_27a810a6f1c9343b–

Redirected to test.host/login Completed 302 Found in 27ms (ActiveRecord: 2.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$nP2nQhELA/XK8LNa9FaXNO/K0iDfxDX0W32Wascoy5Sdtf68rue4."], ["created_at", "2018-12-05 18:21:29.430325"], ["updated_at", "2018-12-05 18:21:29.430325"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.3ms

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$RR3wZ0C6J3SPPzI41lDtUOyqj4e21LhEcrJEayIFhgmW7RE7eoNKu"], ["created_at", "2018-12-05 18:21:29.449084"], ["updated_at", "2018-12-05 18:21:29.449084"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3703"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$O/W0UBUD7nJaQUx8xS62RO3Hju/97ZJ8JiE65aypr13UZ/Wnstkq6"], ["updated_at", "2018-12-05 18:21:29.458990"], ["id", 3703]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 1.9ms)

 (1.0ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$wfU0eLY9tPlY3qR03o0T7ebrtembXB1V.gpEAZpA/CWcUP84/5esa"], ["created_at", "2018-12-05 18:21:29.473327"], ["updated_at", "2018-12-05 18:21:29.473327"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3704"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$Ht2mi7mrkjffO1Av0atDh.u5cyNsjf9Syf7LaqWVczAGWYgkm3RFS"], ["created_at", "2018-12-05 18:21:29.493709"], ["updated_at", "2018-12-05 18:21:29.493709"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3705"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 20ms (Views: 2.2ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$49EENKvSGI9n660CQEpaFOewE0696y/nawAaxICwrJ6Kz1WhOwT8e"], ["created_at", "2018-12-05 18:21:29.526227"], ["updated_at", "2018-12-05 18:21:29.526227"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3706"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 7ms (Views: 0.9ms | ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$56qHUWnjFxFzv8nb/QLDZOTSgjiCn7/AmMCImj0gAe32tQTX1EVhC"], ["created_at", "2018-12-05 18:21:29.546970"], ["updated_at", "2018-12-05 18:21:29.546970"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3707"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C18PxEHWJj0GirxBo/HiIOvgSEXBb5bDOfC1yBiqbKz.qbu/azE7u"], ["created_at", "2018-12-05 18:21:29.565955"], ["updated_at", "2018-12-05 18:21:29.565955"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.6ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n9kjUImJbuQ/gr1qUFh1dO4h4OjynD2yjZqaJ0UaXJLm0K.6lXTJ6"], ["created_at", "2018-12-05 18:21:29.583767"], ["updated_at", "2018-12-05 18:21:29.583767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.7ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HnZWcbsx2WMqN1EHAFu52uHFZ3AkLvAZBNuuD/1jqqhlPoVx8t5ua"], ["created_at", "2018-12-05 18:21:29.601845"], ["updated_at", "2018-12-05 18:21:29.601845"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:29.606506"], ["updated_at", "2018-12-05 18:21:29.606506"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3046], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3710], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3710], ["room_id", 3046], ["created_at", "2018-12-05 18:21:29.614898"], ["updated_at", "2018-12-05 18:21:29.614898"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$s.jKeM2znhFTJxcR.COzTudeDJBLoNPx/pBOE/Nqs2k9CKNy0lrzu"], ["created_at", "2018-12-05 18:21:29.631954"], ["updated_at", "2018-12-05 18:21:29.631954"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:29.636291"], ["updated_at", "2018-12-05 18:21:29.636291"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3047], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3711], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3711], ["room_id", 3047], ["created_at", "2018-12-05 18:21:29.646329"], ["updated_at", "2018-12-05 18:21:29.646329"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.8ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$L8MnIA2EzakURLoE8IlSRuSXj81JFacA9b7B/YS5qXQdcQBWbj1yq"], ["created_at", "2018-12-05 18:21:29.710763"], ["updated_at", "2018-12-05 18:21:29.710763"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:29.715307"], ["updated_at", "2018-12-05 18:21:29.715307"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:21:29 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:29.728893"], ["last_sign_in_at", "2018-12-05 18:21:29.728893"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:29.730148"], ["id", 3712]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3048"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3048], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3712], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3712], ["room_id", 3048], ["created_at", "2018-12-05 18:21:29.748030"], ["updated_at", "2018-12-05 18:21:29.748030"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3048], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9H74xXRlhmeUpN.LA2HjrukthnfWCgLeeb1jvDJsSPPdO4Z0cBd42"], ["created_at", "2018-12-05 18:21:29.766664"], ["updated_at", "2018-12-05 18:21:29.766664"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:29.771582"], ["updated_at", "2018-12-05 18:21:29.771582"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:21:29 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:29.776305"], ["last_sign_in_at", "2018-12-05 18:21:29.776305"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:29.777261"], ["id", 3713]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3049"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3049], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3713], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3713], ["room_id", 3049], ["created_at", "2018-12-05 18:21:29.788223"], ["updated_at", "2018-12-05 18:21:29.788223"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zolMyYZEcICObLSgu7yzf.F/FsHXR1GRubZsdpziDA5glEG2l2RJa"], ["created_at", "2018-12-05 18:21:29.800488"], ["updated_at", "2018-12-05 18:21:29.800488"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:29.804469"], ["updated_at", "2018-12-05 18:21:29.804469"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:21:29 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:29.809664"], ["last_sign_in_at", "2018-12-05 18:21:29.809664"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:29.810609"], ["id", 3714]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3050", "user_id"=>"3714"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3050], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3714], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3714], ["room_id", 3050], ["created_at", "2018-12-05 18:21:29.821536"], ["updated_at", "2018-12-05 18:21:29.821536"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:21:29 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3050", "user_id"=>"3714"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3714], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3050], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3714], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3714], ["room_id", 3050], ["created_at", "2018-12-05 18:21:29.837324"], ["updated_at", "2018-12-05 18:21:29.837324"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eIkEstsbpdPeAerlZ/527OgbCpoMrifsAy9Q8do8Xf8T.i.Kk8X7i"], ["created_at", "2018-12-05 18:21:29.849382"], ["updated_at", "2018-12-05 18:21:29.849382"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:29.853416"], ["updated_at", "2018-12-05 18:21:29.853416"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:21:29 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:29.858564"], ["last_sign_in_at", "2018-12-05 18:21:29.858564"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:29.859575"], ["id", 3715]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3051", "user_id"=>"3715"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3051], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3715], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3715], ["room_id", 3051], ["created_at", "2018-12-05 18:21:29.870307"], ["updated_at", "2018-12-05 18:21:29.870307"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 2.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:21:29 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3051", "user_id"=>"3715"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3715], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3051], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3715], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3715], ["room_id", 3051], ["created_at", "2018-12-05 18:21:29.885682"], ["updated_at", "2018-12-05 18:21:29.885682"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.7ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3051], ["user_id", 3715], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.fcLLfd7xDmBp6XhK2AL/.bsL0BAEAtGPLCLa75hRan09yleBfBg."], ["created_at", "2018-12-05 18:21:29.899554"], ["updated_at", "2018-12-05 18:21:29.899554"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:29.903516"], ["updated_at", "2018-12-05 18:21:29.903516"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:21:29 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:29.909413"], ["last_sign_in_at", "2018-12-05 18:21:29.909413"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:29.910384"], ["id", 3716]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3052", "user_id"=>"3716"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3052], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3716], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3716], ["room_id", 3052], ["created_at", "2018-12-05 18:21:29.921598"], ["updated_at", "2018-12-05 18:21:29.921598"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:21:29 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3052", "user_id"=>"3716"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3716], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3052], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3716], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3716], ["room_id", 3052], ["created_at", "2018-12-05 18:21:29.937251"], ["updated_at", "2018-12-05 18:21:29.937251"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.8ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3052], ["user_id", 3716], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8lACBgeNy9SMZzi3Q13OH.dDnRQihyB7OebSAT.DFRfVoq0eK.eHm"], ["created_at", "2018-12-05 18:21:29.950337"], ["updated_at", "2018-12-05 18:21:29.950337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:29.955205"], ["updated_at", "2018-12-05 18:21:29.955205"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:21:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:29.960271"], ["last_sign_in_at", "2018-12-05 18:21:29.960271"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:29.961287"], ["id", 3717]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3053"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3053], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/su7Xd0VBJRcMDIR1QMJUeDV3ETcEv7QmHd0F9tXGlGh10ZOZ9NLm"], ["created_at", "2018-12-05 18:21:29.978909"], ["updated_at", "2018-12-05 18:21:29.978909"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:29.983229"], ["updated_at", "2018-12-05 18:21:29.983229"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:21:29 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:29.989396"], ["last_sign_in_at", "2018-12-05 18:21:29.989396"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:29.990897"], ["id", 3718]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3054"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tgpNaad/gndgofFDaK7aeedXTzg6MBLh8eaDHAxkTzalMXmA8hMHC"], ["created_at", "2018-12-05 18:21:30.009388"], ["updated_at", "2018-12-05 18:21:30.009388"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:30.013961"], ["updated_at", "2018-12-05 18:21:30.013961"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3055], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3719], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3719], ["room_id", 3055], ["created_at", "2018-12-05 18:21:30.024177"], ["updated_at", "2018-12-05 18:21:30.024177"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3055” for 127.0.0.1 at 2018-12-05 16:21:30 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:30.029646"], ["last_sign_in_at", "2018-12-05 18:21:30.029646"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:30.030815"], ["id", 3719]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3055"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3055], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3055')
Rendered appointments/show.html.erb within layouts/application (13.2ms)
Rendered layouts/_header-user.html.erb (2.8ms)

Completed 200 OK in 557ms (Views: 553.0ms | ActiveRecord: 1.3ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QeyAwfCB5mP6PtOhS/eMl.4L8oKcfcnzTv2MnKcnaKHN1kOfXi4De"], ["created_at", "2018-12-05 18:21:30.602741"], ["updated_at", "2018-12-05 18:21:30.602741"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:30.606889"], ["updated_at", "2018-12-05 18:21:30.606889"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3056], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3720], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3720], ["room_id", 3056], ["created_at", "2018-12-05 18:21:30.614990"], ["updated_at", "2018-12-05 18:21:30.614990"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2855/edit” for 127.0.0.1 at 2018-12-05 16:21:30 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:30.619257"], ["last_sign_in_at", "2018-12-05 18:21:30.619257"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:30.620310"], ["id", 3720]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2855"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2855], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$e8bbDpK3HKikMDhuZHe3ceLIQW3.t9dwv.xSNye9xHSTrbamSkBv6"], ["created_at", "2018-12-05 18:21:30.647989"], ["updated_at", "2018-12-05 18:21:30.647989"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 16:21:30 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:30.652647"], ["last_sign_in_at", "2018-12-05 18:21:30.652647"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:30.653728"], ["id", 3721]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ujry/rw8X4W9XE1Sp7rHH.rld7BmeDVqT626Ix0XdYOnwYH75cgjy"], ["created_at", "2018-12-05 18:21:30.680364"], ["updated_at", "2018-12-05 18:21:30.680364"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:30.684928"], ["updated_at", "2018-12-05 18:21:30.684928"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3057], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3722], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3722], ["room_id", 3057], ["created_at", "2018-12-05 18:21:30.693676"], ["updated_at", "2018-12-05 18:21:30.693676"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3057], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3722], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3722], ["room_id", 3057], ["created_at", "2018-12-05 18:21:30.702510"], ["updated_at", "2018-12-05 18:21:30.702510"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:21:30 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:30.706984"], ["last_sign_in_at", "2018-12-05 18:21:30.706984"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:30.708117"], ["id", 3722]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3722]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.0ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 20ms (Views: 10.6ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hvSaCkCfPJTMU.DNSCvCuuyW.ZTZFaneTXEVGx2CCWDiIlc/gYRv2"], ["created_at", "2018-12-05 18:21:30.742809"], ["updated_at", "2018-12-05 18:21:30.742809"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:30.746991"], ["updated_at", "2018-12-05 18:21:30.746991"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3058], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3723], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3723], ["room_id", 3058], ["created_at", "2018-12-05 18:21:30.755935"], ["updated_at", "2018-12-05 18:21:30.755935"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3058], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3723], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3723], ["room_id", 3058], ["created_at", "2018-12-05 18:21:30.765016"], ["updated_at", "2018-12-05 18:21:30.765016"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:21:30 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:30.769549"], ["last_sign_in_at", "2018-12-05 18:21:30.769549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:30.770627"], ["id", 3723]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3723]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.7ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bM33vF1/dkihgvD/jLXGW.CqqPGa2TdWkti69A5mK2OURgdzPUliO"], ["created_at", "2018-12-05 18:21:30.795847"], ["updated_at", "2018-12-05 18:21:30.795847"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:30.800818"], ["updated_at", "2018-12-05 18:21:30.800818"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3059], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3724], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3724], ["room_id", 3059], ["created_at", "2018-12-05 18:21:30.810174"], ["updated_at", "2018-12-05 18:21:30.810174"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2860” for 127.0.0.1 at 2018-12-05 16:21:30 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:30.815169"], ["last_sign_in_at", "2018-12-05 18:21:30.815169"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:30.816280"], ["id", 3724]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2860"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2860], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2860]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T476oia6JfGndiB96MdwmOe0FFQ5DWV5ZCKPjMlVIIYtO2GJIUNJq"], ["created_at", "2018-12-05 18:21:30.839254"], ["updated_at", "2018-12-05 18:21:30.839254"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:30.843931"], ["updated_at", "2018-12-05 18:21:30.843931"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tmML.JTXCC8WH7A0TR3HYuJ6LobrVfxnmEjx9GD00WgqWAi/DPNZ2"], ["created_at", "2018-12-05 18:21:30.851864"], ["updated_at", "2018-12-05 18:21:30.851864"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3060], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3726], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3726], ["room_id", 3060], ["created_at", "2018-12-05 18:21:30.860114"], ["updated_at", "2018-12-05 18:21:30.860114"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2861” for 127.0.0.1 at 2018-12-05 16:21:30 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:30.865307"], ["last_sign_in_at", "2018-12-05 18:21:30.865307"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:30.866388"], ["id", 3725]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2861"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2861], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3060], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3726], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.8ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NUBCujPayq.Yi1tuB8QuVejFGFFNEGis9us6RW3UjK.JkGVSy49Em"], ["created_at", "2018-12-05 18:21:30.891400"], ["updated_at", "2018-12-05 18:21:30.891400"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:30.896187"], ["updated_at", "2018-12-05 18:21:30.896187"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9HEwraA3e1/bv842DVr6ruO670cbOVgO7IJ/ajNRe5efmB5FeKMZa"], ["created_at", "2018-12-05 18:21:30.903595"], ["updated_at", "2018-12-05 18:21:30.903595"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3061], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3728], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3728], ["room_id", 3061], ["created_at", "2018-12-05 18:21:30.912016"], ["updated_at", "2018-12-05 18:21:30.912016"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2862” for 127.0.0.1 at 2018-12-05 16:21:30 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:30.917080"], ["last_sign_in_at", "2018-12-05 18:21:30.917080"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:30.918146"], ["id", 3727]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2862"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2862], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3061], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3728], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 10ms (ActiveRecord: 1.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WqWXfW8eE3c0AcTJj1sPDuhGNXm6TzQb4/sXL..Ho0eMonL0qHjXO"], ["created_at", "2018-12-05 18:21:30.944368"], ["updated_at", "2018-12-05 18:21:30.944368"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:30.949529"], ["updated_at", "2018-12-05 18:21:30.949529"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$34MlqNiU373cztx.jajtwuhJixbcRfIeHi43cCAyLPGHfUMvIF/oW"], ["created_at", "2018-12-05 18:21:30.956608"], ["updated_at", "2018-12-05 18:21:30.956608"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3062], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3730], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3730], ["room_id", 3062], ["created_at", "2018-12-05 18:21:30.964809"], ["updated_at", "2018-12-05 18:21:30.964809"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2863” for 127.0.0.1 at 2018-12-05 16:21:30 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:30.969670"], ["last_sign_in_at", "2018-12-05 18:21:30.969670"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:30.970555"], ["id", 3729]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2863"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2863], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3062], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3730], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-05 18:21:30.981337"], ["id", 2863]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (5.9ms) Date: Wed, 05 Dec 2018 16:21:30 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c08172af205a_27a810a6f1c94241@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c08172af113e_27a810a6f1c941f5";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c08172af113e_27a810a6f1c941f5 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c08172af113e_27a810a6f1c941f5 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c08172af113e_27a810a6f1c941f5–

Completed 302 Found in 20ms (ActiveRecord: 2.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$z3RzU/m9Iir/gNppxSrR0OkX7FUxiNL4N6baiY28UJBPiQf5R7rUW"], ["created_at", "2018-12-05 18:21:31.005058"], ["updated_at", "2018-12-05 18:21:31.005058"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.009038"], ["updated_at", "2018-12-05 18:21:31.009038"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Oa1fCln16FLD.gIXthUQD.949ULcAeCteS2PFL5NCn3ND4vxoqfRu"], ["created_at", "2018-12-05 18:21:31.016915"], ["updated_at", "2018-12-05 18:21:31.016915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3063], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3732], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3732], ["room_id", 3063], ["created_at", "2018-12-05 18:21:31.025084"], ["updated_at", "2018-12-05 18:21:31.025084"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 18:21:31.029696"], ["id", 2864]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3063], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3732], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3732], ["room_id", 3063], ["created_at", "2018-12-05 18:21:31.037716"], ["updated_at", "2018-12-05 18:21:31.037716"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 18:21:31.041635"], ["id", 2865]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.045521"], ["last_sign_in_at", "2018-12-05 18:21:31.045521"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.046502"], ["id", 3731]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3732], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3063], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3732], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3063], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.4ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 18ms (Views: 13.5ms | ActiveRecord: 2.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TEgeFxqziYOVxj/LC9g4FO2UHwAdpS.pZivUfLv12CN1jAMYndeyS"], ["created_at", "2018-12-05 18:21:31.078949"], ["updated_at", "2018-12-05 18:21:31.078949"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.083719"], ["updated_at", "2018-12-05 18:21:31.083719"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$H0743Dngda83P5/ITh0FzuEiFtRwAjIYyPEWzhcUVQ1B/4uwPLkMW"], ["created_at", "2018-12-05 18:21:31.091414"], ["updated_at", "2018-12-05 18:21:31.091414"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3064], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3734], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3734], ["room_id", 3064], ["created_at", "2018-12-05 18:21:31.100233"], ["updated_at", "2018-12-05 18:21:31.100233"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 18:21:31.104292"], ["id", 2866]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3064], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3734], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3734], ["room_id", 3064], ["created_at", "2018-12-05 18:21:31.112041"], ["updated_at", "2018-12-05 18:21:31.112041"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 18:21:31.115907"], ["id", 2867]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.119897"], ["last_sign_in_at", "2018-12-05 18:21:31.119897"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.120888"], ["id", 3733]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3734], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3064], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3734], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3064], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.5ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 2.0ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DZeCFzzqO8FTCYlMV9MV3.eOTD1e67R1Jemy/GFqpnVYLIADgQbkO"], ["created_at", "2018-12-05 18:21:31.154795"], ["updated_at", "2018-12-05 18:21:31.154795"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.160448"], ["last_sign_in_at", "2018-12-05 18:21:31.160448"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.161336"], ["id", 3735]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (5.9ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$g5oGPdbdJHQDM2IE2uwnluojdk/2I2suTasMF/CppbL4vQjcnwXLO"], ["created_at", "2018-12-05 18:21:31.190705"], ["updated_at", "2018-12-05 18:21:31.190705"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.194669"], ["last_sign_in_at", "2018-12-05 18:21:31.194669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.195775"], ["id", 3736]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$60szqlbp6KgZJG5FY5fre.Np/KYkkXnXSxJb0lcpxzl7/Sd0ZM0PC"], ["created_at", "2018-12-05 18:21:31.211846"], ["updated_at", "2018-12-05 18:21:31.211846"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.216233"], ["last_sign_in_at", "2018-12-05 18:21:31.216233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.217293"], ["id", 3737]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MY1aUAW4RndcjqFlFvgH3evZ7RbFNZmzl7KZUXj.8tzH85meSXFwG"], ["created_at", "2018-12-05 18:21:31.241298"], ["updated_at", "2018-12-05 18:21:31.241298"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.245490"], ["last_sign_in_at", "2018-12-05 18:21:31.245490"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.246511"], ["id", 3738]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:21:31 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (2.9ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8O.LH961aGX2Gtz4p8NShuC5l1HDGuq5dHz8ZAuvhX1L9hpoWFTEK"], ["created_at", "2018-12-05 18:21:31.282759"], ["updated_at", "2018-12-05 18:21:31.282759"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.287463"], ["updated_at", "2018-12-05 18:21:31.287463"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3065” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.292128"], ["last_sign_in_at", "2018-12-05 18:21:31.292128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.293314"], ["id", 3739]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3065"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3065], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KnkpqgO46Wgd5FNTy/2J5.HjFOstWGgDM/jZaiCyia9yMWebJhtGm"], ["created_at", "2018-12-05 18:21:31.317447"], ["updated_at", "2018-12-05 18:21:31.317447"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.322005"], ["updated_at", "2018-12-05 18:21:31.322005"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3066” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.326012"], ["last_sign_in_at", "2018-12-05 18:21:31.326012"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.327043"], ["id", 3740]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3066"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3066], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.344991"], ["updated_at", "2018-12-05 18:21:31.344991"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3067” for 127.0.0.1 at 2018-12-05 16:21:31 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3067"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$i/hFgnSo9R9OpXGnIB0XvOeSqAaNYLUt3JWPbVXoNRB5kMgqBwkhK"], ["created_at", "2018-12-05 18:21:31.361183"], ["updated_at", "2018-12-05 18:21:31.361183"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.365664"], ["updated_at", "2018-12-05 18:21:31.365664"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3068” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.370371"], ["last_sign_in_at", "2018-12-05 18:21:31.370371"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.371370"], ["id", 3741]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3068"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.391976"], ["updated_at", "2018-12-05 18:21:31.391976"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3069” for 127.0.0.1 at 2018-12-05 16:21:31 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3069"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xjXoLXobA2i5zxjJ2uit6.yNxKrcs0LbdmhAlPYtNP3bXVJyiTbDS"], ["created_at", "2018-12-05 18:21:31.407347"], ["updated_at", "2018-12-05 18:21:31.407347"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.411502"], ["updated_at", "2018-12-05 18:21:31.411502"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3070/edit” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.415388"], ["last_sign_in_at", "2018-12-05 18:21:31.415388"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.416441"], ["id", 3742]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3070"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3070], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.1ms)
Rendered layouts/_header-user.html.erb (3.1ms)

Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y55v1hEIKnhPFPpiCtFVou1Z.Wewp9EvgdlUfEaboVAfQkXs670QC"], ["created_at", "2018-12-05 18:21:31.444351"], ["updated_at", "2018-12-05 18:21:31.444351"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.448861"], ["updated_at", "2018-12-05 18:21:31.448861"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3071/edit” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.452916"], ["last_sign_in_at", "2018-12-05 18:21:31.452916"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.453897"], ["id", 3743]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3071"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3071], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.3ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.477900"], ["updated_at", "2018-12-05 18:21:31.477900"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3072” for 127.0.0.1 at 2018-12-05 16:21:31 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3072"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sY8MW7Ytk8tcQIK.Vf6gve.M0ytUcM6nCXSGMngCs31QKuXq5EvOu"], ["created_at", "2018-12-05 18:21:31.494531"], ["updated_at", "2018-12-05 18:21:31.494531"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.501147"], ["last_sign_in_at", "2018-12-05 18:21:31.501147"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.502222"], ["id", 3744]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.509844"], ["updated_at", "2018-12-05 18:21:31.509844"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$69lXMn4grOjw2s4BlawtUeqwWBfbYgKbVwE157.jr1ApQvaVb6ypC"], ["created_at", "2018-12-05 18:21:31.533305"], ["updated_at", "2018-12-05 18:21:31.533305"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.539125"], ["last_sign_in_at", "2018-12-05 18:21:31.539125"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.540441"], ["id", 3745]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.547772"], ["updated_at", "2018-12-05 18:21:31.547772"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gMTEyWCHA2gqAdG1kEQtxef9ryVZfki85DTKXuzs4HwduFgRLYEya"], ["created_at", "2018-12-05 18:21:31.561119"], ["updated_at", "2018-12-05 18:21:31.561119"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.567408"], ["last_sign_in_at", "2018-12-05 18:21:31.567408"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.568651"], ["id", 3746]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CYZWFFJm/Mbfve6rToUb9.rtbFQpaDtdrhTv9tFpk5PKiZ7SvWM96"], ["created_at", "2018-12-05 18:21:31.589159"], ["updated_at", "2018-12-05 18:21:31.589159"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.595200"], ["last_sign_in_at", "2018-12-05 18:21:31.595200"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.596712"], ["id", 3747]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$x3LCksBKjhYF3bhBNUDcD.lwn8BthAVWIW2O.NqdWY/ZRRI0.Dbby"], ["created_at", "2018-12-05 18:21:31.615743"], ["updated_at", "2018-12-05 18:21:31.615743"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.621231"], ["last_sign_in_at", "2018-12-05 18:21:31.621231"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.622201"], ["id", 3748]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XEgW6oL9KtXf1CAhQinDPeU8db0TuwQlh6jY2mr7m7PNY4dWn6I7G"], ["created_at", "2018-12-05 18:21:31.637342"], ["updated_at", "2018-12-05 18:21:31.637342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.641856"], ["updated_at", "2018-12-05 18:21:31.641856"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3075” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.646870"], ["last_sign_in_at", "2018-12-05 18:21:31.646870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.648206"], ["id", 3749]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3075"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3075], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 18:21:31.656332"], ["id", 3075]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3075 Completed 302 Found in 6ms (ActiveRecord: 1.3ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dpOO400QIFIMIZ4UPVBM2O6qSaNIGM21E2PdzodGQH06xn9wQGfE2"], ["created_at", "2018-12-05 18:21:31.669961"], ["updated_at", "2018-12-05 18:21:31.669961"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.674246"], ["updated_at", "2018-12-05 18:21:31.674246"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3076” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.678879"], ["last_sign_in_at", "2018-12-05 18:21:31.678879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.680188"], ["id", 3750]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3076"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3076], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 18:21:31.691076"], ["id", 3076]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3076 Completed 302 Found in 9ms (ActiveRecord: 1.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BEhMfMhU72SndXt2xNw1F.C0V3BF5RCrBHDHXl1RwxzhkTuatG.5a"], ["created_at", "2018-12-05 18:21:31.706247"], ["updated_at", "2018-12-05 18:21:31.706247"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.710953"], ["updated_at", "2018-12-05 18:21:31.710953"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3077” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.716229"], ["last_sign_in_at", "2018-12-05 18:21:31.716229"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.717372"], ["id", 3751]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3077"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3077], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 17ms (Views: 9.7ms | ActiveRecord: 1.0ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bNZeUu3vm6ly64mW8TAb5eoHFXXPP73b7Um51hzI5eWvgSZc973Ui"], ["created_at", "2018-12-05 18:21:31.749953"], ["updated_at", "2018-12-05 18:21:31.749953"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.753712"], ["updated_at", "2018-12-05 18:21:31.753712"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3078” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.758502"], ["last_sign_in_at", "2018-12-05 18:21:31.758502"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.759620"], ["id", 3752]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3078"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3078], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IhYQ8U3vg4cpCqer7x08W.E5JWPqVu65apQZ0oweafp4uhoqnB5PK"], ["created_at", "2018-12-05 18:21:31.789761"], ["updated_at", "2018-12-05 18:21:31.789761"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.795937"], ["last_sign_in_at", "2018-12-05 18:21:31.795937"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.797071"], ["id", 3753]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xFERRbkv/ctvzfPpjbQL9ehGr.3LQj9AOAIeMi64H33oCdjJjJxSq"], ["created_at", "2018-12-05 18:21:31.812627"], ["updated_at", "2018-12-05 18:21:31.812627"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.817081"], ["updated_at", "2018-12-05 18:21:31.817081"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3079” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.820769"], ["last_sign_in_at", "2018-12-05 18:21:31.820769"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.821618"], ["id", 3754]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3079"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3079], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3079]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0NGjwXoLS3ZY/eouwv6VKO6nxQ3GK0T/hly0e2/rq/e.PS4CPne0K"], ["created_at", "2018-12-05 18:21:31.841706"], ["updated_at", "2018-12-05 18:21:31.841706"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.846142"], ["updated_at", "2018-12-05 18:21:31.846142"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3080” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.850084"], ["last_sign_in_at", "2018-12-05 18:21:31.850084"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.851201"], ["id", 3755]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3080"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3080], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3080]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LJ0xpYuzifZe4wXzmBbXt.ae0D2/NeCypsXDJsZklMZPXZ/E2ezGK"], ["created_at", "2018-12-05 18:21:31.871016"], ["updated_at", "2018-12-05 18:21:31.871016"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.875739"], ["updated_at", "2018-12-05 18:21:31.875739"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3081” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.879784"], ["last_sign_in_at", "2018-12-05 18:21:31.879784"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.880778"], ["id", 3756]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3081"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OW7m/kobRaD9VEbdfpFdq.Eh5G6GWlK5/5zQ1xWmq/7BSh9ymmjwy"], ["created_at", "2018-12-05 18:21:31.897207"], ["updated_at", "2018-12-05 18:21:31.897207"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.901806"], ["updated_at", "2018-12-05 18:21:31.901806"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3082” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.905882"], ["last_sign_in_at", "2018-12-05 18:21:31.905882"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.906953"], ["id", 3757]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3082"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PQE9y//CxgYJ0voPcDEVjuzED9UmVcV0P6aX.Y96htTE63hPalsi."], ["created_at", "2018-12-05 18:21:31.922791"], ["updated_at", "2018-12-05 18:21:31.922791"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.928056"], ["last_sign_in_at", "2018-12-05 18:21:31.928056"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.929085"], ["id", 3758]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xBy/Aaim0QplQSNSJUY6/eyvCxYe9PPw.LYp6ID9GsfrjIrw75GyO"], ["created_at", "2018-12-05 18:21:31.957027"], ["updated_at", "2018-12-05 18:21:31.957027"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.961056"], ["updated_at", "2018-12-05 18:21:31.961056"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.964405"], ["updated_at", "2018-12-05 18:21:31.964405"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:31.967479"], ["updated_at", "2018-12-05 18:21:31.967479"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3083], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3759], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3759], ["room_id", 3083], ["created_at", "2018-12-05 18:21:31.974922"], ["updated_at", "2018-12-05 18:21:31.974922"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-05 16:21:31 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:31.979739"], ["last_sign_in_at", "2018-12-05 18:21:31.979739"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:31.980805"], ["id", 3759]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.1ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 23ms (Views: 8.2ms | ActiveRecord: 1.6ms)

Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.8ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$r2BUMRWaA8NlSf8vAXxwlet/CPVYmvYfzWRaU334gHhgBPemsDRs."], ["created_at", "2018-12-05 18:21:32.021848"], ["updated_at", "2018-12-05 18:21:32.021848"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:32.026721"], ["updated_at", "2018-12-05 18:21:32.026721"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:32.030893"], ["updated_at", "2018-12-05 18:21:32.030893"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:21:32.034756"], ["updated_at", "2018-12-05 18:21:32.034756"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3086], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3760], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3760], ["room_id", 3086], ["created_at", "2018-12-05 18:21:32.043790"], ["updated_at", "2018-12-05 18:21:32.043790"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-05 16:21:32 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:21:32.049163"], ["last_sign_in_at", "2018-12-05 18:21:32.049163"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:21:32.050368"], ["id", 3760]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (12.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$iwY0OkIzgZJmtJ93n0OAz.wTUssVkVmCsn1E937FxBV97qQXxcgcS"], ["created_at", "2018-12-05 18:49:33.266272"], ["updated_at", "2018-12-05 18:49:33.266272"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:33 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (134.1ms)
Rendered users/sessions/new.html.erb within layouts/application (886.0ms)

Completed 200 OK in 952ms (Views: 931.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:34 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:34.504780"], ["last_sign_in_at", "2018-12-05 18:49:34.504780"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:34.506090"], ["id", 3761]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 175ms (ActiveRecord: 3.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:34 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3761], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (6.1ms)
Rendered layouts/_header-admin.html.erb (2.3ms)

Completed 200 OK in 154ms (Views: 13.5ms | ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:34 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3761], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.9ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:49:34 -0200 Processing by RoomsController#new as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3761], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (25.3ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 60ms (Views: 29.8ms | ActiveRecord: 6.0ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:49:34 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3761], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:34 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3761], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$d0XNuIwGmxUPBDh3LBK.wuhixiF80RaAuJokfO4Vus5/MtCm3jRSu"], ["created_at", "2018-12-05 18:49:34.900685"], ["updated_at", "2018-12-05 18:49:34.900685"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:34 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:34 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:34.927565"], ["last_sign_in_at", "2018-12-05 18:49:34.927565"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:34.928543"], ["id", 3762]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:34 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3762], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:34 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3762], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.9ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:49:34 -0200 Processing by RoomsController#new as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3762], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.9ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:49:34 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3762], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:34 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3762], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.5ms)

Completed 200 OK in 23ms (Views: 22.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$tohYFuoCr0y2.kZd4stEKeTqzW0z.W9jTirpgIl5KCKg.zc5aE5uW"], ["created_at", "2018-12-05 18:49:35.041708"], ["updated_at", "2018-12-05 18:49:35.041708"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:35.069629"], ["last_sign_in_at", "2018-12-05 18:49:35.069629"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:35.070539"], ["id", 3763]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3763], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$ONYpB.x5nzp0RCeQXeyYseDA3moiAQ/HOeOVpUrTAbxym8GppJMUK"], ["created_at", "2018-12-05 18:49:35.114192"], ["updated_at", "2018-12-05 18:49:35.114192"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 4ms (ActiveRecord: 0.9ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.5ms)
Rendered users/sessions/new.html.erb within layouts/application (2.8ms)

Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$N2ZQ7uBnZlP2DFngojQD1ek2lGUW.A58J.rwDttKvRtXxQ.Tpvgw6"], ["created_at", "2018-12-05 18:49:35.164202"], ["updated_at", "2018-12-05 18:49:35.164202"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.5ms)
Rendered users/sessions/new.html.erb within layouts/application (2.9ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:35.187008"], ["last_sign_in_at", "2018-12-05 18:49:35.187008"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:35.188153"], ["id", 3765]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3765], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:49:35.209374"], ["updated_at", "2018-12-05 18:49:35.209374"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3765], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 34ms (Views: 6.9ms | ActiveRecord: 1.3ms) Started GET “/appointments/3089” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3089"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3089], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3089')
Rendered appointments/show.html.erb within layouts/application (26.8ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3765], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 73ms (Views: 29.3ms | ActiveRecord: 5.1ms) Started POST “/appointments.3089” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3765], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3089], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3765], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 3765], ["room_id", 3089], ["created_at", "2018-12-05 18:49:35.416849"], ["updated_at", "2018-12-05 18:49:35.416849"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 67ms (ActiveRecord: 6.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3765], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.6ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.7ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$hKriAF2ST4MsOB8AXTxLg./Wu43mgzMLE2bAYxIvw4EUw1wkJPHV6"], ["created_at", "2018-12-05 18:49:35.449898"], ["updated_at", "2018-12-05 18:49:35.449898"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:35.476577"], ["last_sign_in_at", "2018-12-05 18:49:35.476577"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:35.477645"], ["id", 3766]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3766], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:49:35.497742"], ["updated_at", "2018-12-05 18:49:35.497742"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3090], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3766], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3766], ["room_id", 3090], ["created_at", "2018-12-05 18:49:35.508842"], ["updated_at", "2018-12-05 18:49:35.508842"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3766], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 1.4ms) Started GET “/appointments/3090” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3090"}
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3090], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3090')
Rendered appointments/show.html.erb within layouts/application (7.3ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3766], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 16ms (Views: 12.2ms | ActiveRecord: 2.2ms) Started POST “/appointments.3090” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3766], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3090], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3766], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 3766], ["room_id", 3090], ["created_at", "2018-12-05 18:49:35.573315"], ["updated_at", "2018-12-05 18:49:35.573315"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3766], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$Soo81e4GKw/Zm3Z3iZbQNuIcpyPlftx4BzcFmJ1xexF7tV/wojDey"], ["created_at", "2018-12-05 18:49:35.600152"], ["updated_at", "2018-12-05 18:49:35.600152"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:35.626669"], ["last_sign_in_at", "2018-12-05 18:49:35.626669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:35.627702"], ["id", 3767]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3767], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:49:35.647100"], ["updated_at", "2018-12-05 18:49:35.647100"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3091], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3767], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3767], ["room_id", 3091], ["created_at", "2018-12-05 18:49:35.657558"], ["updated_at", "2018-12-05 18:49:35.657558"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3767], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3767]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 22ms (Views: 8.6ms | ActiveRecord: 1.4ms) Started DELETE “/appointments/2873” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2873"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2873], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2873]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3767], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3767]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$qDs1tIQADc44ssSlLIcHve40/cqKqGZxUFSE7I8WHS.rE2qPKybiC"], ["created_at", "2018-12-05 18:49:35.737914"], ["updated_at", "2018-12-05 18:49:35.737914"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:35.763497"], ["last_sign_in_at", "2018-12-05 18:49:35.763497"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:35.764621"], ["id", 3768]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3768], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 18:49:35.782538"], ["updated_at", "2018-12-05 18:49:35.782538"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3092], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3768], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 3768], ["room_id", 3092], ["created_at", "2018-12-05 18:49:35.793377"], ["updated_at", "2018-12-05 18:49:35.793377"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3768], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3768]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 1.3ms) Started DELETE “/appointments/2874” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2874"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2874], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2874]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.7ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3768], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3768]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 1.3ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$yIOgWslLcKuWW1rNoOdKFOc75A9r.esXi5.Sszl/gO6D.ZWymtd0W"], ["created_at", "2018-12-05 18:49:35.851014"], ["updated_at", "2018-12-05 18:49:35.851014"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:35.878573"], ["last_sign_in_at", "2018-12-05 18:49:35.878573"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:35.879684"], ["id", 3769]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3769], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-05 18:49:35.897468"], ["updated_at", "2018-12-05 18:49:35.897468"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-05 18:49:35.900651"], ["updated_at", "2018-12-05 18:49:35.900651"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3769], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (5.6ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3769], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 31ms (Views: 11.4ms | ActiveRecord: 1.3ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (1.0ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3769], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 6.6ms | ActiveRecord: 1.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$MbFOioc9FljGQWoDjXVuruGeUgAbYlEujfGwGFVxNfXJ3am.a0v4G"], ["created_at", "2018-12-05 18:49:35.983887"], ["updated_at", "2018-12-05 18:49:35.983887"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:36.010268"], ["last_sign_in_at", "2018-12-05 18:49:36.010268"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:36.011256"], ["id", 3770]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3770], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3770], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 1.5ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$kW0N5zgW.A/ui1NUgAAuaeteh0CPqzCiS5WWbnQvcq3a9NhIqF38C"], ["created_at", "2018-12-05 18:49:36.100818"], ["updated_at", "2018-12-05 18:49:36.100818"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:36.125966"], ["last_sign_in_at", "2018-12-05 18:49:36.125966"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:36.126928"], ["id", 3771]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3771], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:49:36.147019"], ["updated_at", "2018-12-05 18:49:36.147019"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3095], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3771], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3771], ["room_id", 3095], ["created_at", "2018-12-05 18:49:36.157066"], ["updated_at", "2018-12-05 18:49:36.157066"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by RoomsController#index as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3771], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 1.2ms) Started GET “/appointments/3095” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3095"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3095], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3095')
Rendered appointments/show.html.erb within layouts/application (7.4ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3771], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 16ms (Views: 12.5ms | ActiveRecord: 2.2ms) Started POST “/appointments.3095” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3771], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3095], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3771], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 3771], ["room_id", 3095], ["created_at", "2018-12-05 18:49:36.224249"], ["updated_at", "2018-12-05 18:49:36.224249"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3771], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$ZDALg0EBKSaA70YUHpAsqej.1zN/TdtmQVduSyrAsFuz1b53dtEWC"], ["created_at", "2018-12-05 18:49:36.252818"], ["updated_at", "2018-12-05 18:49:36.252818"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:36.278241"], ["last_sign_in_at", "2018-12-05 18:49:36.278241"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:36.279198"], ["id", 3772]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3772], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:49:36.297974"], ["updated_at", "2018-12-05 18:49:36.297974"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3096], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3772], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3772], ["room_id", 3096], ["created_at", "2018-12-05 18:49:36.308568"], ["updated_at", "2018-12-05 18:49:36.308568"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3772], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3772]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$yhFULkR4fvwxVaBXlZK0t.iXdxvqBjYGWrlSwR9Le5mIjIT2zAnAi"], ["created_at", "2018-12-05 18:49:36.344922"], ["updated_at", "2018-12-05 18:49:36.344922"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:36.371225"], ["last_sign_in_at", "2018-12-05 18:49:36.371225"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:36.372766"], ["id", 3773]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 14ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3773], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 18:49:36.393327"], ["updated_at", "2018-12-05 18:49:36.393327"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3097], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3773], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 3773], ["room_id", 3097], ["created_at", "2018-12-05 18:49:36.404378"], ["updated_at", "2018-12-05 18:49:36.404378"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3773], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3773]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 1.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3L9RFkuVXUYIAn9/E4XgL.ja4U/yOm1AgEUhhlj13FUkhRrYYZ7CW"], ["created_at", "2018-12-05 18:49:36.440490"], ["updated_at", "2018-12-05 18:49:36.440490"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:36.467021"], ["last_sign_in_at", "2018-12-05 18:49:36.467021"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:36.468261"], ["id", 3774]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 12ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3774], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3pacroXoDsYfSQw7VeCHB.OI7zo6Oi/AR.QjJc8Lv4xCbTAP04kwq"], ["created_at", "2018-12-05 18:49:36.499778"], ["updated_at", "2018-12-05 18:49:36.499778"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.2ms)
Rendered users/sessions/new.html.erb within layouts/application (4.2ms)

Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:36.526650"], ["last_sign_in_at", "2018-12-05 18:49:36.526650"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:36.527616"], ["id", 3775]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3775], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:49:36.546272"], ["updated_at", "2018-12-05 18:49:36.546272"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:49:36.549565"], ["updated_at", "2018-12-05 18:49:36.549565"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3775], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 1.2ms) Started GET “/appointments/3098” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3098"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3098], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3098')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3775], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 2.3ms) Started POST “/appointments.3098” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3775], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3098], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3775], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 3775], ["room_id", 3098], ["created_at", "2018-12-05 18:49:36.626000"], ["updated_at", "2018-12-05 18:49:36.626000"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3775], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$sX3cGbNkpf.o0WaaczV.GuKs4/BTB5QOqs2nbJYsQqqRPRobkkkly"], ["created_at", "2018-12-05 18:49:36.654234"], ["updated_at", "2018-12-05 18:49:36.654234"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:36.680939"], ["last_sign_in_at", "2018-12-05 18:49:36.680939"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:36.681977"], ["id", 3776]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3776], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:49:36.700225"], ["updated_at", "2018-12-05 18:49:36.700225"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:49:36.703541"], ["updated_at", "2018-12-05 18:49:36.703541"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3776], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 8.6ms | ActiveRecord: 1.4ms) Started GET “/appointments/3100” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3100"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3100], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3100')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3776], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 1.7ms) Started POST “/appointments.3100” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3776], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3776], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$uyFvR2lg8Q7.xPr3S0n1qODt66qamVklpgWx2aYC3/HxxzuCBvtYy"], ["created_at", "2018-12-05 18:49:36.788162"], ["updated_at", "2018-12-05 18:49:36.788162"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:36.812265"], ["last_sign_in_at", "2018-12-05 18:49:36.812265"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:36.813183"], ["id", 3777]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3777], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-05 18:49:36.830289"], ["updated_at", "2018-12-05 18:49:36.830289"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3777], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.7ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3777], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 1.2ms) Started DELETE “/rooms/3102” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3102"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3777], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3102], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3102]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3777], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$2lqBPG9LEuYsfJY710RddOXqwcr8bPdFJmteKrEi0HCZph2jgjOFe"], ["created_at", "2018-12-05 18:49:36.896071"], ["updated_at", "2018-12-05 18:49:36.896071"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-05 18:49:36.899143"], ["updated_at", "2018-12-05 18:49:36.899143"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.5ms)
Rendered users/sessions/new.html.erb within layouts/application (2.9ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:36.933264"], ["last_sign_in_at", "2018-12-05 18:49:36.933264"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:36.934139"], ["id", 3778]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3778], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3778], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 1.2ms) Started GET “/rooms/3103/edit” for 127.0.0.1 at 2018-12-05 16:49:36 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3103"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3778], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3103], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (6.4ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 16ms (Views: 11.4ms | ActiveRecord: 1.2ms) Started PATCH “/rooms/3103” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"3103"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3778], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3103], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 13ms (Views: 6.7ms | ActiveRecord: 1.3ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$KetXqbH85XFf/qA4NUO.6ewcd2f7DQg5yzmuvU9wWt3kaTWF5vYpG"], ["created_at", "2018-12-05 18:49:37.038537"], ["updated_at", "2018-12-05 18:49:37.038537"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$brAZNZSalv.25Hlt0UGuH.aMhEU6nVOlfYAq5MSxMUcBfjJyKMNaa"], ["created_at", "2018-12-05 18:49:37.058652"], ["updated_at", "2018-12-05 18:49:37.058652"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:37.084426"], ["last_sign_in_at", "2018-12-05 18:49:37.084426"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:37.085629"], ["id", 3780]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3780], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3780], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 1.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-05 18:49:37.115069"], ["updated_at", "2018-12-05 18:49:37.115069"], ["tipo_sala", "Coodernação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-05 18:49:37.118421"], ["updated_at", "2018-12-05 18:49:37.118421"], ["tipo_sala", "Predio CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-05 18:49:37.121158"], ["updated_at", "2018-12-05 18:49:37.121158"], ["tipo_sala", "Salas de Reunião"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$AUpgGERGakoZXD8gAGPr6e8LzfCz5OvYe0KXt5lDQP2QiYlRu90xW"], ["created_at", "2018-12-05 18:49:37.156804"], ["updated_at", "2018-12-05 18:49:37.156804"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.1ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:37.181878"], ["last_sign_in_at", "2018-12-05 18:49:37.181878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:37.182795"], ["id", 3781]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3781], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:49:37.200283"], ["updated_at", "2018-12-05 18:49:37.200283"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:49:37.203371"], ["updated_at", "2018-12-05 18:49:37.203371"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3781], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$ZLJ4JpDIXYl4XsP5BSkS6ez8NsXMZ8M.M1EZvWsRFUGvglBNnKlp."], ["created_at", "2018-12-05 18:49:37.241286"], ["updated_at", "2018-12-05 18:49:37.241286"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:37.266570"], ["last_sign_in_at", "2018-12-05 18:49:37.266570"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:37.267509"], ["id", 3782]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3782], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:49:37.285583"], ["updated_at", "2018-12-05 18:49:37.285583"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:49:37.289180"], ["updated_at", "2018-12-05 18:49:37.289180"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3782], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$df/sgEubzDw0hYhjp.gBbOqs4F/E91/Q39IjHpLKS9OLiWm2BMH.y"], ["created_at", "2018-12-05 18:49:37.328658"], ["updated_at", "2018-12-05 18:49:37.328658"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:37.360198"], ["last_sign_in_at", "2018-12-05 18:49:37.360198"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:37.361233"], ["id", 3783]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3783], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:49:37.379772"], ["updated_at", "2018-12-05 18:49:37.379772"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:49:37.383277"], ["updated_at", "2018-12-05 18:49:37.383277"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3783], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3783], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3783], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3783], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3783], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 0.9ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-06", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3783], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.1ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-06' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 30ms (Views: 7.9ms | ActiveRecord: 2.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$F6lgS1NrsWPcvNhC8vaVwe00zFxQh6rhejnXpXaVavf4NqgS86876"], ["created_at", "2018-12-05 18:49:37.503034"], ["updated_at", "2018-12-05 18:49:37.503034"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:37.540318"], ["last_sign_in_at", "2018-12-05 18:49:37.540318"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:37.541425"], ["id", 3784]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3784], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.9ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (4.0ms)
Rendered users/registrations/new.html.erb within layouts/application (6.9ms)

Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$jfb2rJYM1n75s5L4m3iRg.dGaiKxlB38TH3/paLaXAjeBtg3aQJoW"], ["created_at", "2018-12-05 18:49:37.652212"], ["updated_at", "2018-12-05 18:49:37.652212"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:37.655195"], ["last_sign_in_at", "2018-12-05 18:49:37.655195"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:37.656021"], ["id", 3785]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 15ms (ActiveRecord: 3.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3785], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$fvfe6CkqeRah8jyM6lwCj.AWiaOWpcxxy5UyOYd1Nai3bzNE5ccru"], ["created_at", "2018-12-05 18:49:37.685003"], ["updated_at", "2018-12-05 18:49:37.685003"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:37.721559"], ["last_sign_in_at", "2018-12-05 18:49:37.721559"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:37.722481"], ["id", 3786]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3786], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.8ms) Started GET “/users/3786/edit” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"3786"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3786], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.8ms) Started PUT “/users/3786” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"3786"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3786], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3786], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 3786], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-05 18:49:37.789675"], ["id", 3786]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 15ms (ActiveRecord: 2.8ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3786], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$OL7DrhbW3.mp9m/mtAeFVOKYN8XDsR1CETp/SHi5hGhT7q307TntC"], ["created_at", "2018-12-05 18:49:37.822260"], ["updated_at", "2018-12-05 18:49:37.822260"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:37.847598"], ["last_sign_in_at", "2018-12-05 18:49:37.847598"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:37.848622"], ["id", 3787]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3787], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 18:49:37.866513"], ["updated_at", "2018-12-05 18:49:37.866513"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3787], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 1.3ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3787], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3787], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3787], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3787], ["room_id", 1], ["created_at", "2018-12-05 18:49:37.923480"], ["updated_at", "2018-12-05 18:49:37.923480"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3787], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.6ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$t/hfobXYnt2ra42GCNTGgeMahs4V55P4BUft07vXryhIRWf5R43Z6"], ["created_at", "2018-12-05 18:49:37.949343"], ["updated_at", "2018-12-05 18:49:37.949343"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:49:37.973767"], ["last_sign_in_at", "2018-12-05 18:49:37.973767"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:49:37.974785"], ["id", 3788]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3788], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 18:49:37.992604"], ["updated_at", "2018-12-05 18:49:37.992604"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:37 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3788], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 1.2ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 16:49:38 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3788], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 1.8ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 16:49:38 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3788], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3788], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3788], ["room_id", 1], ["created_at", "2018-12-05 18:49:38.048849"], ["updated_at", "2018-12-05 18:49:38.048849"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:49:38 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3788], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$.NF.BMW0p36VHrp5B3GjOe2mNfd4RjgVqcTT0glG8KtbJ8O09Tzuu"], ["created_at", "2018-12-05 18:49:38.074644"], ["updated_at", "2018-12-05 18:49:38.074644"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:38 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:49:38 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-05 16:49:38 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (1.4ms)
Rendered password_resets/new.html.erb within layouts/application (4.4ms)

Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-05 16:49:38 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.7ms)
Rendered password_resets/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.5ms)

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$bmMC2ABf3XVefAdiUknD2uZNUEVmH4w5fiEcTAHFVqp3mIj8kAGwa"], ["updated_at", "2018-12-05 18:49:38.139336"], ["id", 3789]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:49:38 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$21jNYj2U4pFfCy2dTdVUlOkEJ46ljMymvjX/QbvmRim/e5rJqkomi"], ["created_at", "2018-12-05 18:49:49.997088"], ["updated_at", "2018-12-05 18:49:49.997088"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UTRt.be4/Rz3CyXb4sYzSuJffpARJWzM.hnZbo0STtq49BZ2o0ZZ6"], ["created_at", "2018-12-05 18:49:50.006349"], ["updated_at", "2018-12-05 18:49:50.006349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.5ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:50.028980"], ["updated_at", "2018-12-05 18:49:50.028980"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3113], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3791], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3791], ["room_id", 3113], ["created_at", "2018-12-05 18:49:50.077798"], ["updated_at", "2018-12-05 18:49:50.077798"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2882"}
Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2882], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3113], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3791], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (5.4ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (1.6ms)

UserMailer#status_notification: processed outbound mail in 337.2ms Sent mail to 123@123.com (12.3ms) Date: Wed, 05 Dec 2018 16:49:50 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c081dce71689_2e79d10f24239bc@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081dce6f738_2e79d10f24238ae";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081dce6f738_2e79d10f24238ae Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c081dce6f738_2e79d10f24238ae Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c081dce6f738_2e79d10f24238ae–

Completed 302 Found in 367ms (ActiveRecord: 2.7ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nyI7JhEaCT698cCnceFzs.5NcRcB1MOlK26z6zDcid4vO1qtLea7m"], ["created_at", "2018-12-05 18:49:50.481878"], ["updated_at", "2018-12-05 18:49:50.481878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$EH9Uj1mwY5mhqp/eau/lPewN9W/ySmlQI4M04BqbAToYv3BZCPyBK"], ["created_at", "2018-12-05 18:49:50.492025"], ["updated_at", "2018-12-05 18:49:50.492025"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:50.496091"], ["updated_at", "2018-12-05 18:49:50.496091"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3114], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3793], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3793], ["room_id", 3114], ["created_at", "2018-12-05 18:49:50.504895"], ["updated_at", "2018-12-05 18:49:50.504895"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2883"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2883], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3114], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3793], ["LIMIT", 1]]
SQL (0.8ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-05 18:49:50.516827"], ["id", 2883]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.6ms Sent mail to 123@123.com (6.7ms) Date: Wed, 05 Dec 2018 16:49:50 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c081dce80d7e_2e79d10f242417b@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081dce7fd33_2e79d10f24240b1";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081dce7fd33_2e79d10f24240b1 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c081dce7fd33_2e79d10f24240b1 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c081dce7fd33_2e79d10f24240b1–

Completed 302 Found in 23ms (ActiveRecord: 3.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1Aji2yI2F4LKiz4LZDiQ5uV6OERldgQKEwniJrndKMRuJ5oAiZ4Ni"], ["created_at", "2018-12-05 18:49:50.541354"], ["updated_at", "2018-12-05 18:49:50.541354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jOnOemBsi5hALYkULSA/2OTGdAegZgo/YIMlcaL2vgcv63EeQR4Ze"], ["created_at", "2018-12-05 18:49:50.549318"], ["updated_at", "2018-12-05 18:49:50.549318"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:50.553492"], ["updated_at", "2018-12-05 18:49:50.553492"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3115], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3795], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3795], ["room_id", 3115], ["created_at", "2018-12-05 18:49:50.561613"], ["updated_at", "2018-12-05 18:49:50.561613"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$R.imeh3BCHS9j2XukpF3I.oCA2hDpcTm8T3hk/h2GdBGFDm41nYZ."], ["created_at", "2018-12-05 18:49:50.578638"], ["updated_at", "2018-12-05 18:49:50.578638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3/B15pBfpqha/sSUATXCZeex0a0NQilW0K3gRVhlTY.NvEqlI/3Vm"], ["created_at", "2018-12-05 18:49:50.586576"], ["updated_at", "2018-12-05 18:49:50.586576"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:50.590643"], ["updated_at", "2018-12-05 18:49:50.590643"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3116], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3797], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3797], ["room_id", 3116], ["created_at", "2018-12-05 18:49:50.599787"], ["updated_at", "2018-12-05 18:49:50.599787"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2885], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$JOjgse8aYDmQBb5aOqpAmOg.g7/f8NcK7uUf.0cIMl8J4qcl8SMv2"], ["created_at", "2018-12-05 18:49:50.613632"], ["updated_at", "2018-12-05 18:49:50.613632"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3798"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "8RXdL1C5bTEtjgvPPY19dg"], ["updated_at", "2018-12-05 18:49:50.623014"], ["id", 3798]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-05 18:49:50.627408"], ["reset_sent_at", "2018-12-05 18:49:50.626393"], ["id", 3798]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.9ms)

UserMailer#password_reset: processed outbound mail in 14.0ms Sent mail to teste@unb.com.br (6.7ms) Date: Wed, 05 Dec 2018 16:49:50 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c081dce9e40f_2e79d10f242445c@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081dce9cb15_2e79d10f24243fb";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081dce9cb15_2e79d10f24243fb Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/8RXdL1C5bTEtjgvPPY19dg/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c081dce9cb15_2e79d10f24243fb Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/8RXdL1C5bTEtjgvPPY19dg/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c081dce9cb15_2e79d10f24243fb–

Redirected to test.host/login Completed 302 Found in 34ms (ActiveRecord: 3.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$4Ms966oeCdIGCytDZfhgXOKK96Cw6e3tq4JHxdZ0IaAU/UUE1io6O"], ["created_at", "2018-12-05 18:49:50.660560"], ["updated_at", "2018-12-05 18:49:50.660560"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.2ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$WzJlI7LRU.fyNNKx.L9y7O03yu8lQKDXfRzMASiRiXudDlqwIZvfK"], ["created_at", "2018-12-05 18:49:50.677757"], ["updated_at", "2018-12-05 18:49:50.677757"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3800"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$kOOj6lj4MKNCpUpsUFMLAe1TWnS7w4yPkZcCcDAWctH9vEckBmPmG"], ["updated_at", "2018-12-05 18:49:50.687242"], ["id", 3800]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 1.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$fZvRrEQ8FVTW8ZzF6pV8.eG38NFFvEQ00JVSgEl5zNLCCVS3pcJeW"], ["created_at", "2018-12-05 18:49:50.699292"], ["updated_at", "2018-12-05 18:49:50.699292"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3801"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$ZmrmAQ4ze7sc.Csm3lzLyO9I9jE.kJ2o8LJi39WWA77REVmTEu5.C"], ["created_at", "2018-12-05 18:49:50.718231"], ["updated_at", "2018-12-05 18:49:50.718231"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3802"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 19ms (Views: 2.4ms | ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$CojiojxadAQoEj6N5gVsYOfpwhi.2gw82RqetOYIR3GafRvp3B.Eu"], ["created_at", "2018-12-05 18:49:50.748784"], ["updated_at", "2018-12-05 18:49:50.748784"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3803"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$/WSSyWCtW7o0xJTWaqVSHeH0x3JU7JiUJHCQ2PYwR0cZJIkvyu166"], ["created_at", "2018-12-05 18:49:50.768877"], ["updated_at", "2018-12-05 18:49:50.768877"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3804"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qm4ucX6dQG1Mc7QfLZSlt.r/X4OySVzmvbhsNgTriNfYI2DtQbhju"], ["created_at", "2018-12-05 18:49:50.786954"], ["updated_at", "2018-12-05 18:49:50.786954"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.0ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Gt3ulQ6QNlqaDDD1nMrsW.YgS9DosTmECZBuUU0NIoLb3R8u6MilS"], ["created_at", "2018-12-05 18:49:50.803557"], ["updated_at", "2018-12-05 18:49:50.803557"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.7ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1wQS7E/.zPXdD/f9YvKVcOJtOuBDgxmgCnZa1ARo.9N9uHWzSHQ0m"], ["created_at", "2018-12-05 18:49:50.821641"], ["updated_at", "2018-12-05 18:49:50.821641"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:50.826353"], ["updated_at", "2018-12-05 18:49:50.826353"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3117], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3807], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3807], ["room_id", 3117], ["created_at", "2018-12-05 18:49:50.834463"], ["updated_at", "2018-12-05 18:49:50.834463"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oj3TCRtYNoydmBRh8M21u.UEPtTXLmNWmqmY9qTW/XB4oys6fo7Iq"], ["created_at", "2018-12-05 18:49:50.851603"], ["updated_at", "2018-12-05 18:49:50.851603"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:50.856025"], ["updated_at", "2018-12-05 18:49:50.856025"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3118], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3808], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3808], ["room_id", 3118], ["created_at", "2018-12-05 18:49:50.863505"], ["updated_at", "2018-12-05 18:49:50.863505"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zLwvrX/wDXPgcLuMCsCsYe59akmaVHX0k4RzT5Pg9NfbvL/yV/VMu"], ["created_at", "2018-12-05 18:49:50.921347"], ["updated_at", "2018-12-05 18:49:50.921347"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:50.925886"], ["updated_at", "2018-12-05 18:49:50.925886"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:49:50 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:50.939001"], ["last_sign_in_at", "2018-12-05 18:49:50.939001"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:50.940263"], ["id", 3809]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3119"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3119], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3809], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3809], ["room_id", 3119], ["created_at", "2018-12-05 18:49:50.959337"], ["updated_at", "2018-12-05 18:49:50.959337"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3119], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PPn5.cpWY8r5T02bG4ic1.H4keyrHRc5kNEJFo714rA6oFiWLz7e6"], ["created_at", "2018-12-05 18:49:50.975544"], ["updated_at", "2018-12-05 18:49:50.975544"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:50.979883"], ["updated_at", "2018-12-05 18:49:50.979883"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:49:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:50.985309"], ["last_sign_in_at", "2018-12-05 18:49:50.985309"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:50.986374"], ["id", 3810]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3120"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3120], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3810], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3810], ["room_id", 3120], ["created_at", "2018-12-05 18:49:50.998881"], ["updated_at", "2018-12-05 18:49:50.998881"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aPBikhECngXkVzKUxSaxSOQ6BMfWpIgHNEf.P5fDRn93.AnvYn8Nm"], ["created_at", "2018-12-05 18:49:51.012375"], ["updated_at", "2018-12-05 18:49:51.012375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.016889"], ["updated_at", "2018-12-05 18:49:51.016889"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.022289"], ["last_sign_in_at", "2018-12-05 18:49:51.022289"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.023341"], ["id", 3811]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3121", "user_id"=>"3811"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3121], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3811], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3811], ["room_id", 3121], ["created_at", "2018-12-05 18:49:51.035269"], ["updated_at", "2018-12-05 18:49:51.035269"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:49:51 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3121", "user_id"=>"3811"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3811], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3121], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3811], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3811], ["room_id", 3121], ["created_at", "2018-12-05 18:49:51.052489"], ["updated_at", "2018-12-05 18:49:51.052489"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 3.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ee7GEDUhcvoUX8TknKjXWO/GtiS0fF.21sApQcGS2RvgIg3VyZxmq"], ["created_at", "2018-12-05 18:49:51.065589"], ["updated_at", "2018-12-05 18:49:51.065589"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.070051"], ["updated_at", "2018-12-05 18:49:51.070051"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.075855"], ["last_sign_in_at", "2018-12-05 18:49:51.075855"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.077027"], ["id", 3812]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3122", "user_id"=>"3812"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3122], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3812], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3812], ["room_id", 3122], ["created_at", "2018-12-05 18:49:51.088897"], ["updated_at", "2018-12-05 18:49:51.088897"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.7ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:49:51 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3122", "user_id"=>"3812"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3812], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3122], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3812], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3812], ["room_id", 3122], ["created_at", "2018-12-05 18:49:51.105171"], ["updated_at", "2018-12-05 18:49:51.105171"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3122], ["user_id", 3812], ["status", 2], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$G89PNEEauiqaO59R.31lveKihXHSV.WjaADg6BvBvOSskFlYDPwyy"], ["created_at", "2018-12-05 18:49:51.120577"], ["updated_at", "2018-12-05 18:49:51.120577"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.124811"], ["updated_at", "2018-12-05 18:49:51.124811"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.130601"], ["last_sign_in_at", "2018-12-05 18:49:51.130601"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.131720"], ["id", 3813]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3123", "user_id"=>"3813"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3123], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3813], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3813], ["room_id", 3123], ["created_at", "2018-12-05 18:49:51.143758"], ["updated_at", "2018-12-05 18:49:51.143758"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.6ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:49:51 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3123", "user_id"=>"3813"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3813], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3123], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3813], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3813], ["room_id", 3123], ["created_at", "2018-12-05 18:49:51.160331"], ["updated_at", "2018-12-05 18:49:51.160331"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.4ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3123], ["user_id", 3813], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$t6uxCkrYlo.vBFamoXyJCOolPRnSHTiHClbNcnd2aPooDPYfZuH1a"], ["created_at", "2018-12-05 18:49:51.175199"], ["updated_at", "2018-12-05 18:49:51.175199"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.179770"], ["updated_at", "2018-12-05 18:49:51.179770"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.184945"], ["last_sign_in_at", "2018-12-05 18:49:51.184945"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.186068"], ["id", 3814]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3124"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3124], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MB1EPvUzeCamC13zaLcg5OfctUOcwPo6DlNEngnh/evjmE5WYJzqa"], ["created_at", "2018-12-05 18:49:51.204450"], ["updated_at", "2018-12-05 18:49:51.204450"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.209495"], ["updated_at", "2018-12-05 18:49:51.209495"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.214690"], ["last_sign_in_at", "2018-12-05 18:49:51.214690"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.215854"], ["id", 3815]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3125"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gnBMyBSbEH.Tkqm3Ghf46O0cIjO/PxB0f5CgScRDmTuNC7pbgbszu"], ["created_at", "2018-12-05 18:49:51.233326"], ["updated_at", "2018-12-05 18:49:51.233326"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.237647"], ["updated_at", "2018-12-05 18:49:51.237647"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3126], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3816], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3816], ["room_id", 3126], ["created_at", "2018-12-05 18:49:51.245949"], ["updated_at", "2018-12-05 18:49:51.245949"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3126” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.250461"], ["last_sign_in_at", "2018-12-05 18:49:51.250461"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.251536"], ["id", 3816]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3126"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3126], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3126')
Rendered appointments/show.html.erb within layouts/application (13.4ms)
Rendered layouts/_header-user.html.erb (2.8ms)

Completed 200 OK in 215ms (Views: 210.7ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7PrAsMqyr08j.vFGEP6ad.HBpCjj4bBtcwvks.Ka72fwtgbn.56nK"], ["created_at", "2018-12-05 18:49:51.481630"], ["updated_at", "2018-12-05 18:49:51.481630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.486192"], ["updated_at", "2018-12-05 18:49:51.486192"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3127], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3817], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3817], ["room_id", 3127], ["created_at", "2018-12-05 18:49:51.494732"], ["updated_at", "2018-12-05 18:49:51.494732"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2897/edit” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.500178"], ["last_sign_in_at", "2018-12-05 18:49:51.500178"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.501536"], ["id", 3817]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2897"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2897], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$u6d2xXGgJW4VorIrVxetFeMFU22aB1UYTl46e09kGB0zjQeSU0n7G"], ["created_at", "2018-12-05 18:49:51.530671"], ["updated_at", "2018-12-05 18:49:51.530671"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.535257"], ["last_sign_in_at", "2018-12-05 18:49:51.535257"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.536515"], ["id", 3818]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.9ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1o0q0Fn7oiQgujziHOUpne5xqY/FWyemwOtRFWZBFE2.hPOlK35eG"], ["created_at", "2018-12-05 18:49:51.562584"], ["updated_at", "2018-12-05 18:49:51.562584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.567109"], ["updated_at", "2018-12-05 18:49:51.567109"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3128], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3819], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3819], ["room_id", 3128], ["created_at", "2018-12-05 18:49:51.576454"], ["updated_at", "2018-12-05 18:49:51.576454"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3128], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3819], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3819], ["room_id", 3128], ["created_at", "2018-12-05 18:49:51.585393"], ["updated_at", "2018-12-05 18:49:51.585393"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.589686"], ["last_sign_in_at", "2018-12-05 18:49:51.589686"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.590701"], ["id", 3819]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3819]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.1ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 21ms (Views: 10.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pKRrsK8VKTqJgydlHo1c6Oj0VSRcRKhOplLybyGu4KGKqGRukDh4W"], ["created_at", "2018-12-05 18:49:51.626867"], ["updated_at", "2018-12-05 18:49:51.626867"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.631483"], ["updated_at", "2018-12-05 18:49:51.631483"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3129], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3820], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3820], ["room_id", 3129], ["created_at", "2018-12-05 18:49:51.640473"], ["updated_at", "2018-12-05 18:49:51.640473"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3129], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3820], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3820], ["room_id", 3129], ["created_at", "2018-12-05 18:49:51.649791"], ["updated_at", "2018-12-05 18:49:51.649791"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.654220"], ["last_sign_in_at", "2018-12-05 18:49:51.654220"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.655320"], ["id", 3820]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3820]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.4ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UTrX9f6RLyR6H1eqAxI2ceNbeyAFechCF146SORLW9LkSzH/0aplW"], ["created_at", "2018-12-05 18:49:51.683729"], ["updated_at", "2018-12-05 18:49:51.683729"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.688266"], ["updated_at", "2018-12-05 18:49:51.688266"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3130], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3821], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3821], ["room_id", 3130], ["created_at", "2018-12-05 18:49:51.695958"], ["updated_at", "2018-12-05 18:49:51.695958"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2902” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.700168"], ["last_sign_in_at", "2018-12-05 18:49:51.700168"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.701069"], ["id", 3821]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2902"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2902], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2902]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K3wzS9LNbvIHKERcZz4z9OAkDzkBEJNx8IJl6xZ/0XYiWVdtouvrS"], ["created_at", "2018-12-05 18:49:51.722011"], ["updated_at", "2018-12-05 18:49:51.722011"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.726051"], ["updated_at", "2018-12-05 18:49:51.726051"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$WJkqODYJLRKViAttybgnBOiwCrFNeEpVM2QE5yYEVh2Rkk3M7BMXS"], ["created_at", "2018-12-05 18:49:51.733283"], ["updated_at", "2018-12-05 18:49:51.733283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3131], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3823], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3823], ["room_id", 3131], ["created_at", "2018-12-05 18:49:51.740914"], ["updated_at", "2018-12-05 18:49:51.740914"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2903” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.745568"], ["last_sign_in_at", "2018-12-05 18:49:51.745568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.746413"], ["id", 3822]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2903"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2903], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3131], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3823], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 7ms (ActiveRecord: 1.2ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PZq.papgc/hmAs5FEuHOaupN0p1XajTcw5eUMvUmujT32c5FYbrZq"], ["created_at", "2018-12-05 18:49:51.767189"], ["updated_at", "2018-12-05 18:49:51.767189"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.771169"], ["updated_at", "2018-12-05 18:49:51.771169"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1wUx75ixqd4m9yiMuEMkxeY8SMUmLLUNbgyWbSJOI7GzPPni4c./a"], ["created_at", "2018-12-05 18:49:51.779252"], ["updated_at", "2018-12-05 18:49:51.779252"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3132], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3825], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3825], ["room_id", 3132], ["created_at", "2018-12-05 18:49:51.787529"], ["updated_at", "2018-12-05 18:49:51.787529"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2904” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.792668"], ["last_sign_in_at", "2018-12-05 18:49:51.792668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.793768"], ["id", 3824]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2904"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2904], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3132], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3825], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3gwZ/HQXJ2zyfppaZXy1PuLBeMzBsDpnnefE8afRaDQxVtud0giaO"], ["created_at", "2018-12-05 18:49:51.816597"], ["updated_at", "2018-12-05 18:49:51.816597"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.821334"], ["updated_at", "2018-12-05 18:49:51.821334"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DCdaPuxAft7uKDLDJmtm.OTcGwh5lvHnupsoRU.nWBqoVsH4lEJ3."], ["created_at", "2018-12-05 18:49:51.828915"], ["updated_at", "2018-12-05 18:49:51.828915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3133], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3827], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3827], ["room_id", 3133], ["created_at", "2018-12-05 18:49:51.837489"], ["updated_at", "2018-12-05 18:49:51.837489"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2905” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.842671"], ["last_sign_in_at", "2018-12-05 18:49:51.842671"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.843812"], ["id", 3826]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2905"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2905], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3133], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3827], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-05 18:49:51.857188"], ["id", 2905]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.9ms Sent mail to 123@123.com (5.7ms) Date: Wed, 05 Dec 2018 16:49:51 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c081dcfd40e4_2e79d10f24251c9@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081dcfd321c_2e79d10f24250e3";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081dcfd321c_2e79d10f24250e3 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c081dcfd321c_2e79d10f24250e3 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c081dcfd321c_2e79d10f24250e3–

Completed 302 Found in 24ms (ActiveRecord: 2.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cVuFkyAjM3m8Fx75mSrX2u.AscwtMwko6f0CQsmykyJsyIS4juGLy"], ["created_at", "2018-12-05 18:49:51.883176"], ["updated_at", "2018-12-05 18:49:51.883176"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.887385"], ["updated_at", "2018-12-05 18:49:51.887385"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$damQbdmronsANrVzM0dkReDBUAbNe83OcpwpNTY6o/DL.zwb/EA.W"], ["created_at", "2018-12-05 18:49:51.895479"], ["updated_at", "2018-12-05 18:49:51.895479"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3134], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3829], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3829], ["room_id", 3134], ["created_at", "2018-12-05 18:49:51.904236"], ["updated_at", "2018-12-05 18:49:51.904236"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 18:49:51.908636"], ["id", 2906]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3134], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3829], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3829], ["room_id", 3134], ["created_at", "2018-12-05 18:49:51.916828"], ["updated_at", "2018-12-05 18:49:51.916828"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 18:49:51.920856"], ["id", 2907]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.924864"], ["last_sign_in_at", "2018-12-05 18:49:51.924864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:51.925912"], ["id", 3828]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3829], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3134], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3829], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3134], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.3ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 18ms (Views: 13.5ms | ActiveRecord: 2.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AOpcGCmj3tJVgJKLqFQPrO4TmUGzuPbUyMvWbtZKhfDSzaU.nPA6m"], ["created_at", "2018-12-05 18:49:51.958428"], ["updated_at", "2018-12-05 18:49:51.958428"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:51.962595"], ["updated_at", "2018-12-05 18:49:51.962595"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xFZX397HQzQjFFMY3zxPp.vXM1p.Qiul8IGaGJrP9oi.2fmFM4T16"], ["created_at", "2018-12-05 18:49:51.970217"], ["updated_at", "2018-12-05 18:49:51.970217"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3135], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3831], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3831], ["room_id", 3135], ["created_at", "2018-12-05 18:49:51.978994"], ["updated_at", "2018-12-05 18:49:51.978994"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 18:49:51.983180"], ["id", 2908]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3135], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3831], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3831], ["room_id", 3135], ["created_at", "2018-12-05 18:49:51.991423"], ["updated_at", "2018-12-05 18:49:51.991423"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 18:49:51.995319"], ["id", 2909]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:49:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:51.999242"], ["last_sign_in_at", "2018-12-05 18:49:51.999242"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.000210"], ["id", 3830]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3831], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3135], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3831], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3135], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.4ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 14ms (Views: 10.7ms | ActiveRecord: 1.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CVN472la5kh8bTNZb0luc.9sg8j8yJpXe5ngMP/dxfjk3MBbXQCe."], ["created_at", "2018-12-05 18:49:52.032945"], ["updated_at", "2018-12-05 18:49:52.032945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.038417"], ["last_sign_in_at", "2018-12-05 18:49:52.038417"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.039541"], ["id", 3832]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (6.1ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oOSb1DeSY/xmcinutJCZ4evBzcbYywBUaGU/8J/.wul5m/5xizeDm"], ["created_at", "2018-12-05 18:49:52.070059"], ["updated_at", "2018-12-05 18:49:52.070059"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.074266"], ["last_sign_in_at", "2018-12-05 18:49:52.074266"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.075237"], ["id", 3833]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$krDthrbzlMuYOuvJZJTtTO3rWqhst0XoKaC1stRzm.PnYddtp5Jl."], ["created_at", "2018-12-05 18:49:52.090438"], ["updated_at", "2018-12-05 18:49:52.090438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.094666"], ["last_sign_in_at", "2018-12-05 18:49:52.094666"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.095593"], ["id", 3834]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZQP5ri8/bej2VMZetwbdaOpcKNUc08jlFLd1q3rZF2e.hokdvBtLS"], ["created_at", "2018-12-05 18:49:52.118513"], ["updated_at", "2018-12-05 18:49:52.118513"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.122304"], ["last_sign_in_at", "2018-12-05 18:49:52.122304"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.123292"], ["id", 3835]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (2.9ms)

Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:49:52 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 6ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jNYz5VCLI1ObPIHPbERD8O/CwqNh37VN8KJpW6ESPbQYzpUCKSfO."], ["created_at", "2018-12-05 18:49:52.167180"], ["updated_at", "2018-12-05 18:49:52.167180"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.172834"], ["updated_at", "2018-12-05 18:49:52.172834"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3136” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.177192"], ["last_sign_in_at", "2018-12-05 18:49:52.177192"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.178271"], ["id", 3836]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3136"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3136], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 199ms (Views: 6.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V9n5pJDAOnGddHCd6BnQDugBNnV.T/9TeSH6BHp7DZSAi17gmsf4i"], ["created_at", "2018-12-05 18:49:52.393229"], ["updated_at", "2018-12-05 18:49:52.393229"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.397826"], ["updated_at", "2018-12-05 18:49:52.397826"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3137” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.402315"], ["last_sign_in_at", "2018-12-05 18:49:52.402315"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.403258"], ["id", 3837]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3137"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3137], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.428154"], ["updated_at", "2018-12-05 18:49:52.428154"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3138” for 127.0.0.1 at 2018-12-05 16:49:52 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3138"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$88lTACXdoqGKWiHSwp29mua3A7huqtpr84Uk2BWWdVtOuHQZ20Rpi"], ["created_at", "2018-12-05 18:49:52.444882"], ["updated_at", "2018-12-05 18:49:52.444882"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.450079"], ["updated_at", "2018-12-05 18:49:52.450079"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3139” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.454135"], ["last_sign_in_at", "2018-12-05 18:49:52.454135"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.455360"], ["id", 3838]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3139"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 32ms (Views: 8.8ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.498541"], ["updated_at", "2018-12-05 18:49:52.498541"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3140” for 127.0.0.1 at 2018-12-05 16:49:52 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3140"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$39wGgvU1UuuGsReHxYPcYeKiH/l8z0OCK4SD9iC4pBROLPk8SLceW"], ["created_at", "2018-12-05 18:49:52.514950"], ["updated_at", "2018-12-05 18:49:52.514950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.519894"], ["updated_at", "2018-12-05 18:49:52.519894"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3141/edit” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.524473"], ["last_sign_in_at", "2018-12-05 18:49:52.524473"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.525606"], ["id", 3839]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3141"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3141], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.6ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7Q7hfd5kVF9NmJy2EG6OsuR4go0QWWvfaD/0t/DoYqupJPWQLQ2ke"], ["created_at", "2018-12-05 18:49:52.557584"], ["updated_at", "2018-12-05 18:49:52.557584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.562892"], ["updated_at", "2018-12-05 18:49:52.562892"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3142/edit” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.567791"], ["last_sign_in_at", "2018-12-05 18:49:52.567791"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.569101"], ["id", 3840]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3142"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3142], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.591769"], ["updated_at", "2018-12-05 18:49:52.591769"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3143” for 127.0.0.1 at 2018-12-05 16:49:52 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3143"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0gsqyjc8sxLD82eOrMOrX.fQsKQtDAD5C6lcrkoG0JmgEHVhfQ/je"], ["created_at", "2018-12-05 18:49:52.608956"], ["updated_at", "2018-12-05 18:49:52.608956"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.614532"], ["last_sign_in_at", "2018-12-05 18:49:52.614532"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.615690"], ["id", 3841]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.622696"], ["updated_at", "2018-12-05 18:49:52.622696"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sXdS66XalANhHjGVDCenY.GzPGqKiyD/m7R4015IMXzGkNmsQUjvK"], ["created_at", "2018-12-05 18:49:52.637689"], ["updated_at", "2018-12-05 18:49:52.637689"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.643227"], ["last_sign_in_at", "2018-12-05 18:49:52.643227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.644342"], ["id", 3842]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.651118"], ["updated_at", "2018-12-05 18:49:52.651118"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PsDO8VoevogMFx8cTkOxpeTD8kgZlyr0mdFAA7VtC0JsaHrauj7O6"], ["created_at", "2018-12-05 18:49:52.663940"], ["updated_at", "2018-12-05 18:49:52.663940"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.669460"], ["last_sign_in_at", "2018-12-05 18:49:52.669460"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.670416"], ["id", 3843]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WY1H.DTvqjQgXEuOrVyK9.dq0SvI2C/0FgjahVmlJPgJxfu3pGpqy"], ["created_at", "2018-12-05 18:49:52.689882"], ["updated_at", "2018-12-05 18:49:52.689882"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.696947"], ["last_sign_in_at", "2018-12-05 18:49:52.696947"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.698004"], ["id", 3844]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aVakmc5ClKyB1yQfFE8jW.DUJokyq7FeBiEbaP4hZsZAHtH3B1Ir."], ["created_at", "2018-12-05 18:49:52.716690"], ["updated_at", "2018-12-05 18:49:52.716690"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.721982"], ["last_sign_in_at", "2018-12-05 18:49:52.721982"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.723155"], ["id", 3845]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rMn2v4vSgCV92Cfpiu5.Dej5V.uvVgOhG9rgVb5y433jwB/ywiud2"], ["created_at", "2018-12-05 18:49:52.739321"], ["updated_at", "2018-12-05 18:49:52.739321"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.744107"], ["updated_at", "2018-12-05 18:49:52.744107"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3146” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.749653"], ["last_sign_in_at", "2018-12-05 18:49:52.749653"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.750928"], ["id", 3846]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3146"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3146], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 18:49:52.759878"], ["id", 3146]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3146 Completed 302 Found in 7ms (ActiveRecord: 1.8ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bKRdPvIeXPR2aw/vsaPRreT05c/b00Dt.vqwRgzlellqxvKkEvo1q"], ["created_at", "2018-12-05 18:49:52.775189"], ["updated_at", "2018-12-05 18:49:52.775189"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.780520"], ["updated_at", "2018-12-05 18:49:52.780520"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3147” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.785595"], ["last_sign_in_at", "2018-12-05 18:49:52.785595"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.786719"], ["id", 3847]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3147"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3147], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 18:49:52.795219"], ["id", 3147]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3147 Completed 302 Found in 7ms (ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5XGmkiUlgrRaYnwARINvDeCb2djz9DVOPARtVWNt7kfQZ4yhEq28a"], ["created_at", "2018-12-05 18:49:52.810228"], ["updated_at", "2018-12-05 18:49:52.810228"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.814976"], ["updated_at", "2018-12-05 18:49:52.814976"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3148” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.820223"], ["last_sign_in_at", "2018-12-05 18:49:52.820223"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.821378"], ["id", 3848]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3148"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3148], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.2ms)
Rendered layouts/_header-admin.html.erb (2.1ms)

Completed 200 OK in 18ms (Views: 11.7ms | ActiveRecord: 1.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XOpbjOoxVGWc8a4ZktPwnO4faztdVykA702.kEYrvROhI9ENtTuM."], ["created_at", "2018-12-05 18:49:52.855092"], ["updated_at", "2018-12-05 18:49:52.855092"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.860199"], ["updated_at", "2018-12-05 18:49:52.860199"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3149” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.865876"], ["last_sign_in_at", "2018-12-05 18:49:52.865876"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.866936"], ["id", 3849]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3149"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3149], ["LIMIT", 1]]
 (0.5ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-admin.html.erb (2.2ms)

Completed 200 OK in 16ms (Views: 10.2ms | ActiveRecord: 1.3ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$duZObYBXNLtNYR9krKu57OjVjYSH/LEUtrw5FfJwYUiIZDAf7FYF."], ["created_at", "2018-12-05 18:49:52.899601"], ["updated_at", "2018-12-05 18:49:52.899601"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.905645"], ["last_sign_in_at", "2018-12-05 18:49:52.905645"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.906819"], ["id", 3850]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KVpPvv1uTwEW2O/ItIOrneIeOgnsQ4bEo3blwU4wqwMauyOO13qw2"], ["created_at", "2018-12-05 18:49:52.924223"], ["updated_at", "2018-12-05 18:49:52.924223"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.929264"], ["updated_at", "2018-12-05 18:49:52.929264"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3150” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.933618"], ["last_sign_in_at", "2018-12-05 18:49:52.933618"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.934907"], ["id", 3851]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3150"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3150], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3150]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q2LkvCMeyioxsV2o3DaGtOrC2JPxLGKeg2nQwezKA8KHnOxnLmZEK"], ["created_at", "2018-12-05 18:49:52.957462"], ["updated_at", "2018-12-05 18:49:52.957462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.962098"], ["updated_at", "2018-12-05 18:49:52.962098"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3151” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.966389"], ["last_sign_in_at", "2018-12-05 18:49:52.966389"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.967421"], ["id", 3852]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3151"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3151], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3151]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UXpVINMb5Y99hwhw39aWQeXiMdmks8xsWDx4VsWaXOWRVGuNcJWuC"], ["created_at", "2018-12-05 18:49:52.988701"], ["updated_at", "2018-12-05 18:49:52.988701"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:52.993680"], ["updated_at", "2018-12-05 18:49:52.993680"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3152” for 127.0.0.1 at 2018-12-05 16:49:52 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:52.998131"], ["last_sign_in_at", "2018-12-05 18:49:52.998131"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:52.999182"], ["id", 3853]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3152"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/8yYDzQef/StA/cc7nHan.wiy/SD6c1sxy9EQenJzmMn.yl35.N0m"], ["created_at", "2018-12-05 18:49:53.020403"], ["updated_at", "2018-12-05 18:49:53.020403"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:53.025412"], ["updated_at", "2018-12-05 18:49:53.025412"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3153” for 127.0.0.1 at 2018-12-05 16:49:53 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:53.029648"], ["last_sign_in_at", "2018-12-05 18:49:53.029648"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:53.030773"], ["id", 3854]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3153"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WLleTL82iW6xVHUjDjzjX.7ikrtj01vnooUN9sZWNLOa5sADyt2Ca"], ["created_at", "2018-12-05 18:49:53.047843"], ["updated_at", "2018-12-05 18:49:53.047843"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 16:49:53 -0200

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:53.053110"], ["last_sign_in_at", "2018-12-05 18:49:53.053110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:53.054232"], ["id", 3855]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FRTXb8oJsd81zZ38MS1qKuZK9F8Ms3ExwZ8j/SjtS9lnOFbG4biQm"], ["created_at", "2018-12-05 18:49:53.087807"], ["updated_at", "2018-12-05 18:49:53.087807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:53.093096"], ["updated_at", "2018-12-05 18:49:53.093096"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:53.097469"], ["updated_at", "2018-12-05 18:49:53.097469"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:53.101453"], ["updated_at", "2018-12-05 18:49:53.101453"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3154], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3856], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3856], ["room_id", 3154], ["created_at", "2018-12-05 18:49:53.110169"], ["updated_at", "2018-12-05 18:49:53.110169"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-05 16:49:53 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:53.115081"], ["last_sign_in_at", "2018-12-05 18:49:53.115081"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:53.116344"], ["id", 3856]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 25ms (Views: 8.9ms | ActiveRecord: 2.0ms)

Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Xx2NfK4V0U20UA8LB8Y26u4H8.amd7zeRJik.mM..6TDJMXIJ2x0e"], ["created_at", "2018-12-05 18:49:53.162829"], ["updated_at", "2018-12-05 18:49:53.162829"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:53.167626"], ["updated_at", "2018-12-05 18:49:53.167626"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:53.172036"], ["updated_at", "2018-12-05 18:49:53.172036"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:49:53.175739"], ["updated_at", "2018-12-05 18:49:53.175739"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3157], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3857], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3857], ["room_id", 3157], ["created_at", "2018-12-05 18:49:53.184697"], ["updated_at", "2018-12-05 18:49:53.184697"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-05 16:49:53 -0200

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:49:53.189519"], ["last_sign_in_at", "2018-12-05 18:49:53.189519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:49:53.190780"], ["id", 3857]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cm1uYsRfgG8ZPpizT/jGTuXJ54n3H//NmeCIeHEMqwAMS4PrVQepu"], ["created_at", "2018-12-05 18:55:48.159485"], ["updated_at", "2018-12-05 18:55:48.159485"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$D5LJ4FdJgxHXIZgJsv2YTuv9fMJ7O95lADc47z3Co4oLUZqnSU.eK"], ["created_at", "2018-12-05 18:55:48.169355"], ["updated_at", "2018-12-05 18:55:48.169355"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:48.191247"], ["updated_at", "2018-12-05 18:55:48.191247"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3160], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3859], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3859], ["room_id", 3160], ["created_at", "2018-12-05 18:55:48.267257"], ["updated_at", "2018-12-05 18:55:48.267257"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2912"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2912], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3160], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3859], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (2.4ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (1.3ms)

UserMailer#status_notification: processed outbound mail in 349.4ms Sent mail to 123@123.com (22.1ms) Date: Wed, 05 Dec 2018 16:55:48 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c081f34a4a97_324d7f4f184438f@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081f34a0455_324d7f4f1844295";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081f34a0455_324d7f4f1844295 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c081f34a0455_324d7f4f1844295 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c081f34a0455_324d7f4f1844295–

Completed 302 Found in 390ms (ActiveRecord: 2.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SHLpJXtzUcGkgIMH0B4a3OcOZ/247n6FZpt8hEaHWL3Tr1VdtoCRW"], ["created_at", "2018-12-05 18:55:48.690980"], ["updated_at", "2018-12-05 18:55:48.690980"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$K9pCIEex6KOsGAnMMnp4DOMU89B8EotNv6f3PCsSVSB6tlXVcdXKm"], ["created_at", "2018-12-05 18:55:48.699431"], ["updated_at", "2018-12-05 18:55:48.699431"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:48.703934"], ["updated_at", "2018-12-05 18:55:48.703934"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3161], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3861], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3861], ["room_id", 3161], ["created_at", "2018-12-05 18:55:48.712814"], ["updated_at", "2018-12-05 18:55:48.712814"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2913"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2913], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3161], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3861], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-05 18:55:48.724291"], ["id", 2913]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms Sent mail to 123@123.com (5.8ms) Date: Wed, 05 Dec 2018 16:55:48 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c081f34b34e2_324d7f4f18445dc@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081f34b264b_324d7f4f18444a5";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081f34b264b_324d7f4f18444a5 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c081f34b264b_324d7f4f18444a5 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c081f34b264b_324d7f4f18444a5–

Completed 302 Found in 21ms (ActiveRecord: 2.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XYGVXeUxOpBJMJH1FVbREOlin3hJBCr.gBkYt6/u4K7ceFCdeGtli"], ["created_at", "2018-12-05 18:55:48.748167"], ["updated_at", "2018-12-05 18:55:48.748167"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5MZBe/ec50qWUaq/0nY.B.xI42DtYQEPLeRBs5VgyXiyuja.0G.hi"], ["created_at", "2018-12-05 18:55:48.756276"], ["updated_at", "2018-12-05 18:55:48.756276"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:48.759964"], ["updated_at", "2018-12-05 18:55:48.759964"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3162], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3863], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3863], ["room_id", 3162], ["created_at", "2018-12-05 18:55:48.767302"], ["updated_at", "2018-12-05 18:55:48.767302"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7wwIsuw9oXqPsMDSbRt6muGXdTXzS.Ja69aymu0cJQwxO25lvmquO"], ["created_at", "2018-12-05 18:55:48.782900"], ["updated_at", "2018-12-05 18:55:48.782900"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MF68XUfIDRUpKeKkIumH9uGMbzawIKSIbHHPy2hNVGruMSyMmAWPi"], ["created_at", "2018-12-05 18:55:48.790533"], ["updated_at", "2018-12-05 18:55:48.790533"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:48.794353"], ["updated_at", "2018-12-05 18:55:48.794353"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3163], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3865], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3865], ["room_id", 3163], ["created_at", "2018-12-05 18:55:48.801848"], ["updated_at", "2018-12-05 18:55:48.801848"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2915], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$3Lb/BRpMUlS5ADSAEwXt1.lH9MIdjD0h6qolJFPzAx250DcvExwUS"], ["created_at", "2018-12-05 18:55:48.815188"], ["updated_at", "2018-12-05 18:55:48.815188"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3866"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "IYHxmSRr4M3mbJDFQ-1dAQ"], ["updated_at", "2018-12-05 18:55:48.824136"], ["id", 3866]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-05 18:55:48.827906"], ["reset_sent_at", "2018-12-05 18:55:48.827165"], ["id", 3866]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)

UserMailer#password_reset: processed outbound mail in 10.3ms Sent mail to teste@unb.com.br (6.7ms) Date: Wed, 05 Dec 2018 16:55:48 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c081f34cddc2_324d7f4f1844845@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081f34ccdb8_324d7f4f18447a4";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081f34ccdb8_324d7f4f18447a4 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/IYHxmSRr4M3mbJDFQ-1dAQ/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c081f34ccdb8_324d7f4f18447a4 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/IYHxmSRr4M3mbJDFQ-1dAQ/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c081f34ccdb8_324d7f4f18447a4–

Redirected to test.host/login Completed 302 Found in 28ms (ActiveRecord: 2.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$mvyEJ4WmDwMgPMRhn9Ca6O7uMG3EEohyLczgl3ZQybB3WbnGigvbK"], ["created_at", "2018-12-05 18:55:48.857250"], ["updated_at", "2018-12-05 18:55:48.857250"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.9ms

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$IptjS7yI/mPN0sgBxdtnUObJFwOpX6DEPLQ4lsLclUbLBClzJ44vC"], ["created_at", "2018-12-05 18:55:48.878138"], ["updated_at", "2018-12-05 18:55:48.878138"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3868"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$TDzBdwyUeBLuhU24Xj.3AuYh1.5WGsC0Du2QAnJG5P1xYfZSJ8mzC"], ["updated_at", "2018-12-05 18:55:48.891461"], ["id", 3868]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 11ms (ActiveRecord: 2.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$Qwc9qWZmbnn9dy.XW65JkesrnzkU6dborMjjNbgbtIBmU6aS4HcC."], ["created_at", "2018-12-05 18:55:48.905175"], ["updated_at", "2018-12-05 18:55:48.905175"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3869"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.5ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$CkAaOwWxmKZATNVhqKEWVu7CkvOn5G.xZvpYaHLF5CwSSpjDW1xEu"], ["created_at", "2018-12-05 18:55:48.925395"], ["updated_at", "2018-12-05 18:55:48.925395"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3870"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 23ms (Views: 2.4ms | ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$0AErpFR3lAG9bBZWoBr2IOn6PSkKCVh3/KRTYG.8RmxWiCLnl5wrq"], ["created_at", "2018-12-05 18:55:48.961022"], ["updated_at", "2018-12-05 18:55:48.961022"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3871"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$3zadPn.ogNRDzeYkU2lovuBki7fpxcL.bz70yDgUDq1PTB64sOf0i"], ["created_at", "2018-12-05 18:55:48.982283"], ["updated_at", "2018-12-05 18:55:48.982283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3872"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6OIrg70tAq279m3hQll18.dgM7w3GedtvFIrmQHXZlx9c/7ezLui2"], ["created_at", "2018-12-05 18:55:49.017317"], ["updated_at", "2018-12-05 18:55:49.017317"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.6ms

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EHPGuWRRSyIRbHYJRm2lUOH8/f3nG7TOB0xp0cRrfZWlHcznWcN/a"], ["created_at", "2018-12-05 18:55:49.034080"], ["updated_at", "2018-12-05 18:55:49.034080"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 4.6ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$y44V9qb4Z0.zakZE9cm9N.ol6VKRUF8eE7b8/52c6ZucbHlX5Mrx6"], ["created_at", "2018-12-05 18:55:49.053027"], ["updated_at", "2018-12-05 18:55:49.053027"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.057220"], ["updated_at", "2018-12-05 18:55:49.057220"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3164], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3875], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3875], ["room_id", 3164], ["created_at", "2018-12-05 18:55:49.065079"], ["updated_at", "2018-12-05 18:55:49.065079"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2F4INdJaiTgSNkhoY.McAOFt3jitE1er/.xM3.Inu3JTjzrZc7ME."], ["created_at", "2018-12-05 18:55:49.082428"], ["updated_at", "2018-12-05 18:55:49.082428"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.086837"], ["updated_at", "2018-12-05 18:55:49.086837"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3165], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3876], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3876], ["room_id", 3165], ["created_at", "2018-12-05 18:55:49.094680"], ["updated_at", "2018-12-05 18:55:49.094680"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 5.2ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.7ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jKJ4qgWTCZT4nuDUGQXGIuzE41VTQ46QeW4T89T9IlsWVizU3a0V2"], ["created_at", "2018-12-05 18:55:49.157389"], ["updated_at", "2018-12-05 18:55:49.157389"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.161709"], ["updated_at", "2018-12-05 18:55:49.161709"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:55:49 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:49.175576"], ["last_sign_in_at", "2018-12-05 18:55:49.175576"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:49.176792"], ["id", 3877]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3166"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3166], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3877], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3877], ["room_id", 3166], ["created_at", "2018-12-05 18:55:49.196104"], ["updated_at", "2018-12-05 18:55:49.196104"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3166], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LicB9JWaqnzHrpanEl8URucku1769mA3XcYkciYdNedMaA8/thhvi"], ["created_at", "2018-12-05 18:55:49.214883"], ["updated_at", "2018-12-05 18:55:49.214883"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.219869"], ["updated_at", "2018-12-05 18:55:49.219869"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:55:49 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:49.224614"], ["last_sign_in_at", "2018-12-05 18:55:49.224614"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:49.225587"], ["id", 3878]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3167"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3167], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3878], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3878], ["room_id", 3167], ["created_at", "2018-12-05 18:55:49.236719"], ["updated_at", "2018-12-05 18:55:49.236719"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$WOpsW6iiWZ0mTy7w/8iIBuSd4I.dEi8Hv5BaV91wG6FxMv7DzKnsK"], ["created_at", "2018-12-05 18:55:49.249784"], ["updated_at", "2018-12-05 18:55:49.249784"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.253850"], ["updated_at", "2018-12-05 18:55:49.253850"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:55:49 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:49.259024"], ["last_sign_in_at", "2018-12-05 18:55:49.259024"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:49.260353"], ["id", 3879]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3168", "user_id"=>"3879"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3168], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3879], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3879], ["room_id", 3168], ["created_at", "2018-12-05 18:55:49.273498"], ["updated_at", "2018-12-05 18:55:49.273498"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:55:49 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3168", "user_id"=>"3879"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3879], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3168], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3879], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3879], ["room_id", 3168], ["created_at", "2018-12-05 18:55:49.290339"], ["updated_at", "2018-12-05 18:55:49.290339"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VKdST7UkCQsQnl1GL.T70O49I9msxFWQVX/OgecX/EAOtwfnIf4Hq"], ["created_at", "2018-12-05 18:55:49.302471"], ["updated_at", "2018-12-05 18:55:49.302471"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.306605"], ["updated_at", "2018-12-05 18:55:49.306605"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:55:49 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:49.312272"], ["last_sign_in_at", "2018-12-05 18:55:49.312272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:49.313273"], ["id", 3880]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3169", "user_id"=>"3880"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3169], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3880], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3880], ["room_id", 3169], ["created_at", "2018-12-05 18:55:49.324347"], ["updated_at", "2018-12-05 18:55:49.324347"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:55:49 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3169", "user_id"=>"3880"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3880], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3169], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3880], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3880], ["room_id", 3169], ["created_at", "2018-12-05 18:55:49.339791"], ["updated_at", "2018-12-05 18:55:49.339791"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.8ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3169], ["user_id", 3880], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$keSb.CsYZT8YDpM7.dHi6.lsoUOa7l.vDCgNrwwBeO6LKlpCy2/D."], ["created_at", "2018-12-05 18:55:49.354044"], ["updated_at", "2018-12-05 18:55:49.354044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.358532"], ["updated_at", "2018-12-05 18:55:49.358532"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:55:49 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:49.363901"], ["last_sign_in_at", "2018-12-05 18:55:49.363901"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:49.364885"], ["id", 3881]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3170", "user_id"=>"3881"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3170], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3881], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3881], ["room_id", 3170], ["created_at", "2018-12-05 18:55:49.375669"], ["updated_at", "2018-12-05 18:55:49.375669"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 2.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:55:49 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3170", "user_id"=>"3881"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3881], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3170], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3881], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3881], ["room_id", 3170], ["created_at", "2018-12-05 18:55:49.390997"], ["updated_at", "2018-12-05 18:55:49.390997"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.8ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3170], ["user_id", 3881], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ym70ji.YsSCeQCtlgElYtuCJ0YbvIaF32bmMVgniVnmOVbBIEC1Xe"], ["created_at", "2018-12-05 18:55:49.404459"], ["updated_at", "2018-12-05 18:55:49.404459"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.408611"], ["updated_at", "2018-12-05 18:55:49.408611"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:55:49 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:49.413643"], ["last_sign_in_at", "2018-12-05 18:55:49.413643"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:49.414624"], ["id", 3882]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3171"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3171], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$g9qjJN/ztnhaLiJTSe48QuuK/NeSb5ke7jnD5MTrLrB4Q9NVj2LKm"], ["created_at", "2018-12-05 18:55:49.431373"], ["updated_at", "2018-12-05 18:55:49.431373"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.435354"], ["updated_at", "2018-12-05 18:55:49.435354"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:55:49 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:49.440187"], ["last_sign_in_at", "2018-12-05 18:55:49.440187"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:49.441178"], ["id", 3883]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3172"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$96Q.bCApv/hEaz6wdvyFVeXx98zO6oPD89UAHTIrdWggv7KUgc.vy"], ["created_at", "2018-12-05 18:55:49.457115"], ["updated_at", "2018-12-05 18:55:49.457115"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.461510"], ["updated_at", "2018-12-05 18:55:49.461510"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3173], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3884], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3884], ["room_id", 3173], ["created_at", "2018-12-05 18:55:49.469638"], ["updated_at", "2018-12-05 18:55:49.469638"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3173” for 127.0.0.1 at 2018-12-05 16:55:49 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:49.473674"], ["last_sign_in_at", "2018-12-05 18:55:49.473674"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:49.474587"], ["id", 3884]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3173"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3173], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3173')
Rendered appointments/show.html.erb within layouts/application (13.0ms)
Rendered layouts/_header-user.html.erb (3.0ms)

Completed 200 OK in 304ms (Views: 299.9ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$drrHEtjv81L.0XmGn.sx/e.BCHHmdSZAXtMTeRpbfXffzUYLtnXue"], ["created_at", "2018-12-05 18:55:49.793558"], ["updated_at", "2018-12-05 18:55:49.793558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.798480"], ["updated_at", "2018-12-05 18:55:49.798480"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3174], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3885], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3885], ["room_id", 3174], ["created_at", "2018-12-05 18:55:49.807494"], ["updated_at", "2018-12-05 18:55:49.807494"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2927/edit” for 127.0.0.1 at 2018-12-05 16:55:49 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:49.812560"], ["last_sign_in_at", "2018-12-05 18:55:49.812560"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:49.813713"], ["id", 3885]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2927"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2927], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 10.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CalJC3NKVHADPRBvRQWVoOThtaApi1Q9Gzc5XGjbg.PFvDXj6Cdqm"], ["created_at", "2018-12-05 18:55:49.845809"], ["updated_at", "2018-12-05 18:55:49.845809"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 16:55:49 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:49.850384"], ["last_sign_in_at", "2018-12-05 18:55:49.850384"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:49.851357"], ["id", 3886]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$H1VQqmSIVatD2367D2TZ.uZTHIk67LqiXhhuinhUGVd8T7ybBGYqC"], ["created_at", "2018-12-05 18:55:49.876479"], ["updated_at", "2018-12-05 18:55:49.876479"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.881352"], ["updated_at", "2018-12-05 18:55:49.881352"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3175], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3887], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3887], ["room_id", 3175], ["created_at", "2018-12-05 18:55:49.889506"], ["updated_at", "2018-12-05 18:55:49.889506"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3175], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3887], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3887], ["room_id", 3175], ["created_at", "2018-12-05 18:55:49.897554"], ["updated_at", "2018-12-05 18:55:49.897554"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:55:49 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:49.901543"], ["last_sign_in_at", "2018-12-05 18:55:49.901543"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:49.902471"], ["id", 3887]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3887]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.4ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 17ms (Views: 9.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pIFi9jUV0ppdTPlv9IiP7ugj7Ex/.1gd7XzN3QGSJXmJZih/3aYxO"], ["created_at", "2018-12-05 18:55:49.932963"], ["updated_at", "2018-12-05 18:55:49.932963"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.937036"], ["updated_at", "2018-12-05 18:55:49.937036"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3176], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3888], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3888], ["room_id", 3176], ["created_at", "2018-12-05 18:55:49.944920"], ["updated_at", "2018-12-05 18:55:49.944920"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3176], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3888], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3888], ["room_id", 3176], ["created_at", "2018-12-05 18:55:49.952308"], ["updated_at", "2018-12-05 18:55:49.952308"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:55:49 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:49.956654"], ["last_sign_in_at", "2018-12-05 18:55:49.956654"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:49.957590"], ["id", 3888]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3888]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YhLgwEznNyLSdTy4tNw.Behb1GviWMdAVtG2cRkDAtztqwpfi9bR6"], ["created_at", "2018-12-05 18:55:49.979123"], ["updated_at", "2018-12-05 18:55:49.979123"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:49.983411"], ["updated_at", "2018-12-05 18:55:49.983411"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3177], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3889], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3889], ["room_id", 3177], ["created_at", "2018-12-05 18:55:49.990941"], ["updated_at", "2018-12-05 18:55:49.990941"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2932” for 127.0.0.1 at 2018-12-05 16:55:49 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:49.995061"], ["last_sign_in_at", "2018-12-05 18:55:49.995061"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:49.995984"], ["id", 3889]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2932"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2932], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2932]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 4ms (ActiveRecord: 1.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$el75ynd3hnmntCSXyIBzJuJDWOqt0dJZXacc5Un9HydolgxOk8zGi"], ["created_at", "2018-12-05 18:55:50.016698"], ["updated_at", "2018-12-05 18:55:50.016698"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.021115"], ["updated_at", "2018-12-05 18:55:50.021115"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Uf5qqB7QQrDgbqgncfytOOIN9thdudwuzKOJU4UAoxzGgMH9.d5rS"], ["created_at", "2018-12-05 18:55:50.027622"], ["updated_at", "2018-12-05 18:55:50.027622"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3178], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3891], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3891], ["room_id", 3178], ["created_at", "2018-12-05 18:55:50.034870"], ["updated_at", "2018-12-05 18:55:50.034870"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2933” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.039322"], ["last_sign_in_at", "2018-12-05 18:55:50.039322"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.040325"], ["id", 3890]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2933"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2933], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3178], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3891], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 7ms (ActiveRecord: 1.4ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IIWwu502/i1w5aErGKMO2OJHrzSmR.xxG1jCFVbIBS3Bg9tgyUYKa"], ["created_at", "2018-12-05 18:55:50.062030"], ["updated_at", "2018-12-05 18:55:50.062030"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.066102"], ["updated_at", "2018-12-05 18:55:50.066102"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DH6sljqxWLub9mVDX97gHuXnJFbYiernsUpq7dam4MP4z0Y.Orn.u"], ["created_at", "2018-12-05 18:55:50.073963"], ["updated_at", "2018-12-05 18:55:50.073963"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3179], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3893], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3893], ["room_id", 3179], ["created_at", "2018-12-05 18:55:50.082205"], ["updated_at", "2018-12-05 18:55:50.082205"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2934” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.087732"], ["last_sign_in_at", "2018-12-05 18:55:50.087732"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.088833"], ["id", 3892]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2934"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2934], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3179], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3893], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 2.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a/UQhlv5R/gA7jB4yLNLR.yvrQA34aQ0XZ3ZCyKanNiBSRvWPnKl6"], ["created_at", "2018-12-05 18:55:50.111691"], ["updated_at", "2018-12-05 18:55:50.111691"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.115907"], ["updated_at", "2018-12-05 18:55:50.115907"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$BuF9hkHKtYr05nob5vyjU.USizr/x0ih5y3KU70dZ6WEd6yLJoJvy"], ["created_at", "2018-12-05 18:55:50.123558"], ["updated_at", "2018-12-05 18:55:50.123558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3180], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3895], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3895], ["room_id", 3180], ["created_at", "2018-12-05 18:55:50.131794"], ["updated_at", "2018-12-05 18:55:50.131794"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2935” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.137133"], ["last_sign_in_at", "2018-12-05 18:55:50.137133"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.138183"], ["id", 3894]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2935"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2935], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3180], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3895], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-05 18:55:50.149458"], ["id", 2935]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms Sent mail to 123@123.com (5.9ms) Date: Wed, 05 Dec 2018 16:55:50 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c081f362705c_324d7f4f1845594@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081f36260ff_324d7f4f18454d9";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081f36260ff_324d7f4f18454d9 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c081f36260ff_324d7f4f18454d9 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c081f36260ff_324d7f4f18454d9–

Completed 302 Found in 21ms (ActiveRecord: 2.4ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bHJ2WI3Ou65RO90R6N2Ru.kkI0MUonCMsxo6D50Pdq9tWnhkZpB3S"], ["created_at", "2018-12-05 18:55:50.175215"], ["updated_at", "2018-12-05 18:55:50.175215"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.179557"], ["updated_at", "2018-12-05 18:55:50.179557"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Zw2SRpKYllF5yC6fyo8zIO/ecAbOgv16drIZ9M8VJxivQOOG.C/CK"], ["created_at", "2018-12-05 18:55:50.187555"], ["updated_at", "2018-12-05 18:55:50.187555"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3181], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3897], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3897], ["room_id", 3181], ["created_at", "2018-12-05 18:55:50.196313"], ["updated_at", "2018-12-05 18:55:50.196313"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 18:55:50.200490"], ["id", 2936]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3181], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3897], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3897], ["room_id", 3181], ["created_at", "2018-12-05 18:55:50.208412"], ["updated_at", "2018-12-05 18:55:50.208412"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 18:55:50.212454"], ["id", 2937]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.216835"], ["last_sign_in_at", "2018-12-05 18:55:50.216835"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.217982"], ["id", 3896]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3897], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3181], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3897], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3181], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (10.8ms)
Rendered layouts/_header-admin.html.erb (3.7ms)

Completed 200 OK in 23ms (Views: 17.9ms | ActiveRecord: 2.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TPUSNX2hnMNLf8BVmLeFB.ZDjf2VWvHM5SaRARc3IEH7FHGRUSnrG"], ["created_at", "2018-12-05 18:55:50.256492"], ["updated_at", "2018-12-05 18:55:50.256492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.261343"], ["updated_at", "2018-12-05 18:55:50.261343"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bGO6HszgzUQOD9dpN1hPJu4BfnFyMnRvDuf7x/BzGvOG/NNV3cDR2"], ["created_at", "2018-12-05 18:55:50.269812"], ["updated_at", "2018-12-05 18:55:50.269812"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3182], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3899], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3899], ["room_id", 3182], ["created_at", "2018-12-05 18:55:50.279575"], ["updated_at", "2018-12-05 18:55:50.279575"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 18:55:50.284087"], ["id", 2938]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3182], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3899], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3899], ["room_id", 3182], ["created_at", "2018-12-05 18:55:50.292679"], ["updated_at", "2018-12-05 18:55:50.292679"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 18:55:50.297146"], ["id", 2939]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.301346"], ["last_sign_in_at", "2018-12-05 18:55:50.301346"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.302552"], ["id", 3898]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3899], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3182], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3899], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3182], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.3ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 17ms (Views: 12.6ms | ActiveRecord: 2.2ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ViD82ojyCPC21rPEHJcm2evcxYLmuL0KM3Qx2Ck2ajgd8ur1JT/vm"], ["created_at", "2018-12-05 18:55:50.362483"], ["updated_at", "2018-12-05 18:55:50.362483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.367168"], ["last_sign_in_at", "2018-12-05 18:55:50.367168"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.368263"], ["id", 3900]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.5ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9NDZGwSfzIUTGN9aF.WI4.gRo1NSumjFlKNSweOXk5QSGPpZs8WHC"], ["created_at", "2018-12-05 18:55:50.402349"], ["updated_at", "2018-12-05 18:55:50.402349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.406932"], ["last_sign_in_at", "2018-12-05 18:55:50.406932"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.408126"], ["id", 3901]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4Zl2dxmS3LZzIkZmnQx90.PgOsVknjc0Y7pXoQjPWsSrWdNY2zOLO"], ["created_at", "2018-12-05 18:55:50.424506"], ["updated_at", "2018-12-05 18:55:50.424506"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.429234"], ["last_sign_in_at", "2018-12-05 18:55:50.429234"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.430467"], ["id", 3902]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h0.cVZDT.zI7BhtxBaW7BOVkDms/uzEvZXw..N8pU8P0yRFXXmhjW"], ["created_at", "2018-12-05 18:55:50.457641"], ["updated_at", "2018-12-05 18:55:50.457641"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.462340"], ["last_sign_in_at", "2018-12-05 18:55:50.462340"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.463389"], ["id", 3903]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:55:50 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eRT/WVsawXegtIJgCJ82FeD.LY4a8KvuHBKlji2h1gKETl1h7ySka"], ["created_at", "2018-12-05 18:55:50.500967"], ["updated_at", "2018-12-05 18:55:50.500967"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.505716"], ["updated_at", "2018-12-05 18:55:50.505716"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3183” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.509923"], ["last_sign_in_at", "2018-12-05 18:55:50.509923"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.510893"], ["id", 3904]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3183"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3183], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XSvkn2S2C.VljcNpj28hgOMGql1zS/OGD1lHxILHysOy3NCgDcGo6"], ["created_at", "2018-12-05 18:55:50.536056"], ["updated_at", "2018-12-05 18:55:50.536056"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.540403"], ["updated_at", "2018-12-05 18:55:50.540403"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3184” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.544226"], ["last_sign_in_at", "2018-12-05 18:55:50.544226"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.545536"], ["id", 3905]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3184"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3184], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.564081"], ["updated_at", "2018-12-05 18:55:50.564081"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3185” for 127.0.0.1 at 2018-12-05 16:55:50 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3185"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J9H.1ZEhVr6ZmK1/XAOljerQ6J/X0DdhrpB2T3DToo3HSgEZhG.Hi"], ["created_at", "2018-12-05 18:55:50.579821"], ["updated_at", "2018-12-05 18:55:50.579821"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.583904"], ["updated_at", "2018-12-05 18:55:50.583904"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3186” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.587950"], ["last_sign_in_at", "2018-12-05 18:55:50.587950"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.588946"], ["id", 3906]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3186"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (5.0ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.611361"], ["updated_at", "2018-12-05 18:55:50.611361"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3187” for 127.0.0.1 at 2018-12-05 16:55:50 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3187"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EpbhOKS6BfeMkwwrAbv6jOWL7dZupmFAAJE9YPTleimCjHo/CYl.e"], ["created_at", "2018-12-05 18:55:50.627184"], ["updated_at", "2018-12-05 18:55:50.627184"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.631579"], ["updated_at", "2018-12-05 18:55:50.631579"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3188/edit” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.635564"], ["last_sign_in_at", "2018-12-05 18:55:50.635564"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.636945"], ["id", 3907]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3188"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3188], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.9ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tgB3VsaSTwflvuen8U0a1O0JTXUuUwjmoGNuNkbCP4BAsItt6U7bS"], ["created_at", "2018-12-05 18:55:50.665016"], ["updated_at", "2018-12-05 18:55:50.665016"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.669674"], ["updated_at", "2018-12-05 18:55:50.669674"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3189/edit” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.673871"], ["last_sign_in_at", "2018-12-05 18:55:50.673871"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.674785"], ["id", 3908]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3189"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3189], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.698282"], ["updated_at", "2018-12-05 18:55:50.698282"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3190” for 127.0.0.1 at 2018-12-05 16:55:50 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3190"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4XV05rbjEO9EEsJx1/Hq5u.oIQH8me087bZjyNXHlnZtxPi1Jscxu"], ["created_at", "2018-12-05 18:55:50.714736"], ["updated_at", "2018-12-05 18:55:50.714736"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.720855"], ["last_sign_in_at", "2018-12-05 18:55:50.720855"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.721852"], ["id", 3909]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.728925"], ["updated_at", "2018-12-05 18:55:50.728925"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WsogBmAagzeKmaw71jsAEu8antTObAOiCeM/lP/3HpoBo0pRY0W5S"], ["created_at", "2018-12-05 18:55:50.743932"], ["updated_at", "2018-12-05 18:55:50.743932"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.751120"], ["last_sign_in_at", "2018-12-05 18:55:50.751120"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.752579"], ["id", 3910]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.760495"], ["updated_at", "2018-12-05 18:55:50.760495"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wU2govs/cuhmoAdhfUhL.eQ9kq5B.a5kEWy3j1wy.QgU82Irscuxq"], ["created_at", "2018-12-05 18:55:50.774550"], ["updated_at", "2018-12-05 18:55:50.774550"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.780872"], ["last_sign_in_at", "2018-12-05 18:55:50.780872"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.781936"], ["id", 3911]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.4ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OCLl7oVXnW99CHSkG/pcYu3Zs..yT7kMYW9uYnKOtLZoJH32//Gku"], ["created_at", "2018-12-05 18:55:50.802884"], ["updated_at", "2018-12-05 18:55:50.802884"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.808612"], ["last_sign_in_at", "2018-12-05 18:55:50.808612"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.809941"], ["id", 3912]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VBd9hRkBqnWQlS3SBHvy6uNFt9SpZeD3bq3DTTEXXzHm1TtHLVmI."], ["created_at", "2018-12-05 18:55:50.829185"], ["updated_at", "2018-12-05 18:55:50.829185"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.834913"], ["last_sign_in_at", "2018-12-05 18:55:50.834913"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.836016"], ["id", 3913]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$paQRtP1WntMhQFMWDxWC5eV8eGomZK/zHzGK9FqjZ.zfn6KpS7S2G"], ["created_at", "2018-12-05 18:55:50.851583"], ["updated_at", "2018-12-05 18:55:50.851583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.855994"], ["updated_at", "2018-12-05 18:55:50.855994"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3193” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.861051"], ["last_sign_in_at", "2018-12-05 18:55:50.861051"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.862078"], ["id", 3914]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3193"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3193], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 18:55:50.870452"], ["id", 3193]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3193 Completed 302 Found in 7ms (ActiveRecord: 1.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Lc1IMB2eHC75gBynLZJSReAm7az6qGs/iNHwQqZYfOtU6nHmKYuG6"], ["created_at", "2018-12-05 18:55:50.884948"], ["updated_at", "2018-12-05 18:55:50.884948"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.889365"], ["updated_at", "2018-12-05 18:55:50.889365"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3194” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.894132"], ["last_sign_in_at", "2018-12-05 18:55:50.894132"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.895232"], ["id", 3915]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3194"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3194], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 18:55:50.903200"], ["id", 3194]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3194 Completed 302 Found in 7ms (ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PapR3zmqMVeMlzSdKRJmievp9kqlRraH.tJfaVQictNYlYHBVwWum"], ["created_at", "2018-12-05 18:55:50.916555"], ["updated_at", "2018-12-05 18:55:50.916555"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.920861"], ["updated_at", "2018-12-05 18:55:50.920861"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3195” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.925500"], ["last_sign_in_at", "2018-12-05 18:55:50.925500"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.926521"], ["id", 3916]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3195"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3195], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 14ms (Views: 8.9ms | ActiveRecord: 0.8ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ozYwNBeHktbKPKx./R5JHeomyR.7Kz2kDczkPgboC06RVo.pBv7zm"], ["created_at", "2018-12-05 18:55:50.955868"], ["updated_at", "2018-12-05 18:55:50.955868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:50.960293"], ["updated_at", "2018-12-05 18:55:50.960293"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3196” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.965314"], ["last_sign_in_at", "2018-12-05 18:55:50.965314"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:50.966327"], ["id", 3917]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3196"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3196], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 8.5ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fnQuCoCyH8tFV08KHxpjXOrpfTfBxIFxYCD.Q/XhXntJi.stO0TBW"], ["created_at", "2018-12-05 18:55:50.993953"], ["updated_at", "2018-12-05 18:55:50.993953"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:55:50 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:50.999262"], ["last_sign_in_at", "2018-12-05 18:55:50.999262"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:51.000261"], ["id", 3918]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mW.hLPcJUXO.o.C033OCxu9TbQ0sNsu6XlmT2pBqRjKDxtv9MSPQm"], ["created_at", "2018-12-05 18:55:51.014943"], ["updated_at", "2018-12-05 18:55:51.014943"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:51.019074"], ["updated_at", "2018-12-05 18:55:51.019074"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3197” for 127.0.0.1 at 2018-12-05 16:55:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:51.022885"], ["last_sign_in_at", "2018-12-05 18:55:51.022885"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:51.024017"], ["id", 3919]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3197"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3197], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3197]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cweG4Am.VM/RaZiXZFm8D./V9UdsOVzaeTXm9IdSKBgqKF9mYICTu"], ["created_at", "2018-12-05 18:55:51.043153"], ["updated_at", "2018-12-05 18:55:51.043153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:51.047468"], ["updated_at", "2018-12-05 18:55:51.047468"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3198” for 127.0.0.1 at 2018-12-05 16:55:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:51.051172"], ["last_sign_in_at", "2018-12-05 18:55:51.051172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:51.052149"], ["id", 3920]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3198"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3198], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3198]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pJOSa./6xCkTGKxNoaWdSOVxqhsploFLr4H5.yZ0jLes0xRaXvsim"], ["created_at", "2018-12-05 18:55:51.070682"], ["updated_at", "2018-12-05 18:55:51.070682"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:51.074692"], ["updated_at", "2018-12-05 18:55:51.074692"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3199” for 127.0.0.1 at 2018-12-05 16:55:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:51.078391"], ["last_sign_in_at", "2018-12-05 18:55:51.078391"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:51.079286"], ["id", 3921]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3199"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hC/ltUdGY62ewIqPMopkoOnOkDM/u1U5n/q8XrchLuxSK4a45S42W"], ["created_at", "2018-12-05 18:55:51.095026"], ["updated_at", "2018-12-05 18:55:51.095026"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:51.100399"], ["updated_at", "2018-12-05 18:55:51.100399"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3200” for 127.0.0.1 at 2018-12-05 16:55:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:51.105679"], ["last_sign_in_at", "2018-12-05 18:55:51.105679"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:51.106988"], ["id", 3922]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3200"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SZ2wTW0Wcg6erlt3HJ2e1ertG2Le99pBzSPfIQKxNNoyUHvGImDh."], ["created_at", "2018-12-05 18:55:51.123622"], ["updated_at", "2018-12-05 18:55:51.123622"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 16:55:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:51.128151"], ["last_sign_in_at", "2018-12-05 18:55:51.128151"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:51.129115"], ["id", 3923]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VZV0qQflqyFbxqKPFMr7Ie7napgM54IyF8VG2GIf6oKN4vcgO9Ulq"], ["created_at", "2018-12-05 18:55:51.157149"], ["updated_at", "2018-12-05 18:55:51.157149"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:51.161694"], ["updated_at", "2018-12-05 18:55:51.161694"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:51.165635"], ["updated_at", "2018-12-05 18:55:51.165635"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:51.169325"], ["updated_at", "2018-12-05 18:55:51.169325"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3201], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3924], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3924], ["room_id", 3201], ["created_at", "2018-12-05 18:55:51.177412"], ["updated_at", "2018-12-05 18:55:51.177412"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-05 16:55:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:51.181908"], ["last_sign_in_at", "2018-12-05 18:55:51.181908"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:51.182890"], ["id", 3924]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 23ms (Views: 8.5ms | ActiveRecord: 1.8ms)

Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sZQVsfxq2Q7zdUyYxljCke3O.f6IcQN77EtuI1rEBwmL4.ceUdRQK"], ["created_at", "2018-12-05 18:55:51.225749"], ["updated_at", "2018-12-05 18:55:51.225749"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:51.230865"], ["updated_at", "2018-12-05 18:55:51.230865"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:51.234981"], ["updated_at", "2018-12-05 18:55:51.234981"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:55:51.238504"], ["updated_at", "2018-12-05 18:55:51.238504"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3204], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3925], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3925], ["room_id", 3204], ["created_at", "2018-12-05 18:55:51.248106"], ["updated_at", "2018-12-05 18:55:51.248106"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-05 16:55:51 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:55:51.252690"], ["last_sign_in_at", "2018-12-05 18:55:51.252690"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:55:51.253775"], ["id", 3925]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$3Av2EKNW9cHMWyhOcWdH6eRT56ssAdkEORzGMZqeJbcB.NYavm2oC"], ["created_at", "2018-12-05 18:56:02.721649"], ["updated_at", "2018-12-05 18:56:02.721649"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:02 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.3ms)
Rendered users/sessions/new.html.erb within layouts/application (253.0ms)

Completed 200 OK in 280ms (Views: 265.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:03.082546"], ["last_sign_in_at", "2018-12-05 18:56:03.082546"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:03.083733"], ["id", 3926]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3926], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.0ms)
Rendered layouts/_header-admin.html.erb (2.3ms)

Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3926], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by RoomsController#new as HTML

User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3926], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.4ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 37ms (Views: 12.7ms | ActiveRecord: 6.4ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3926], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 8ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3926], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.6ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.7ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$DE9nTV3vC/EeqKaj/mpGaen7aahszfbo2nmx9iYMswcQBzh2bN402"], ["created_at", "2018-12-05 18:56:03.217403"], ["updated_at", "2018-12-05 18:56:03.217403"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:03.242679"], ["last_sign_in_at", "2018-12-05 18:56:03.242679"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:03.243888"], ["id", 3927]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3927], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3927], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by RoomsController#new as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3927], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 0.9ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3927], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3927], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.2ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.4ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms)

 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$1CtsWjuMDNNv8/o9x1A5x.Flt5EKlsR9YYogFClfVw/deJDBsB8Tm"], ["created_at", "2018-12-05 18:56:03.344009"], ["updated_at", "2018-12-05 18:56:03.344009"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:03.375792"], ["last_sign_in_at", "2018-12-05 18:56:03.375792"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:03.376751"], ["id", 3928]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3928], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.9ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$VGZwP0TKfmxmYNs3kzwsIeSHjtHknUQnoBfD7KHUecY72SzL/T2bq"], ["created_at", "2018-12-05 18:56:03.414166"], ["updated_at", "2018-12-05 18:56:03.414166"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 5ms (ActiveRecord: 1.0ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.5ms)
Rendered users/sessions/new.html.erb within layouts/application (3.0ms)

Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$HhojuUFv87VZMZ/QBtUVG.ZHNkN52Pml/oNFvHLBn.RZsVedFUeo."], ["created_at", "2018-12-05 18:56:03.464145"], ["updated_at", "2018-12-05 18:56:03.464145"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:03.491680"], ["last_sign_in_at", "2018-12-05 18:56:03.491680"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:03.492626"], ["id", 3930]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3930], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.7ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:56:03.513367"], ["updated_at", "2018-12-05 18:56:03.513367"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3930], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 1.3ms) Started GET “/appointments/3207” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3207"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3207], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3207')
Rendered appointments/show.html.erb within layouts/application (12.4ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3930], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 32ms (Views: 15.3ms | ActiveRecord: 5.4ms) Started POST “/appointments.3207” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3930], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3207], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3930], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 3930], ["room_id", 3207], ["created_at", "2018-12-05 18:56:03.666853"], ["updated_at", "2018-12-05 18:56:03.666853"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 69ms (ActiveRecord: 7.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3930], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 1.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$YFyjV7v2.62wg.OGplrAb.NqcGm9TCPvLNgkCsLfdaF.NryMNpu/a"], ["created_at", "2018-12-05 18:56:03.697376"], ["updated_at", "2018-12-05 18:56:03.697376"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:03.723873"], ["last_sign_in_at", "2018-12-05 18:56:03.723873"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:03.724894"], ["id", 3931]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3931], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:56:03.749465"], ["updated_at", "2018-12-05 18:56:03.749465"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3208], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3931], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3931], ["room_id", 3208], ["created_at", "2018-12-05 18:56:03.758461"], ["updated_at", "2018-12-05 18:56:03.758461"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3931], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 8.2ms | ActiveRecord: 1.4ms) Started GET “/appointments/3208” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3208"}
Room Load (0.8ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3208], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3208')
Rendered appointments/show.html.erb within layouts/application (7.8ms)
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3931], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 18ms (Views: 13.7ms | ActiveRecord: 2.5ms) Started POST “/appointments.3208” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3931], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3208], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3931], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 3931], ["room_id", 3208], ["created_at", "2018-12-05 18:56:03.831122"], ["updated_at", "2018-12-05 18:56:03.831122"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3931], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 1.0ms)

 (0.6ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$jyrI47tbUe3G01vmcI.kYuBV2R38xO3U04gs0MPf8alE.y62A20UK"], ["created_at", "2018-12-05 18:56:03.861424"], ["updated_at", "2018-12-05 18:56:03.861424"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:03.887915"], ["last_sign_in_at", "2018-12-05 18:56:03.887915"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:03.888926"], ["id", 3932]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3932], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:56:03.909207"], ["updated_at", "2018-12-05 18:56:03.909207"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3209], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3932], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3932], ["room_id", 3209], ["created_at", "2018-12-05 18:56:03.920630"], ["updated_at", "2018-12-05 18:56:03.920630"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3932], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3932]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.0ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 22ms (Views: 9.3ms | ActiveRecord: 1.5ms) Started DELETE “/appointments/2945” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2945"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2945], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2945]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3932], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3932]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$GHVVOgBXBrA1Z3cozpo5kOj1bqOP7/XtsUnG1XovBKnpZnRdB2UmC"], ["created_at", "2018-12-05 18:56:03.994371"], ["updated_at", "2018-12-05 18:56:03.994371"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:04.022925"], ["last_sign_in_at", "2018-12-05 18:56:04.022925"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:04.023942"], ["id", 3933]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3933], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (3.2ms)

Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.7ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 18:56:04.046063"], ["updated_at", "2018-12-05 18:56:04.046063"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3210], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3933], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 3933], ["room_id", 3210], ["created_at", "2018-12-05 18:56:04.057673"], ["updated_at", "2018-12-05 18:56:04.057673"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3933], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3933]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 15ms (Views: 10.1ms | ActiveRecord: 1.3ms) Started DELETE “/appointments/2946” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2946"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2946], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2946]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3933], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3933]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$W23eJgIBlgl.UcNDHKT3deAV222ebZND6NXiqzEFDIWArB4T7ukAu"], ["created_at", "2018-12-05 18:56:04.132129"], ["updated_at", "2018-12-05 18:56:04.132129"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.2ms)
Rendered users/sessions/new.html.erb within layouts/application (5.2ms)

Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:04.168726"], ["last_sign_in_at", "2018-12-05 18:56:04.168726"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:04.169828"], ["id", 3934]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3934], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.7ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 11ms (Views: 8.3ms | ActiveRecord: 0.7ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-05 18:56:04.194138"], ["updated_at", "2018-12-05 18:56:04.194138"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-05 18:56:04.197591"], ["updated_at", "2018-12-05 18:56:04.197591"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3934], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (6.6ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3934], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (2.5ms)

Completed 200 OK in 18ms (Views: 15.2ms | ActiveRecord: 1.3ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.9ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3934], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (2.1ms)

Completed 200 OK in 13ms (Views: 9.0ms | ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$TLlEN9wyA.d0YW/J7LHaDeBxfSbAlW/RIhL8k.ivWqJu9sxI4uPRu"], ["created_at", "2018-12-05 18:56:04.272727"], ["updated_at", "2018-12-05 18:56:04.272727"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.6ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.3ms)
Rendered users/sessions/new.html.erb within layouts/application (4.9ms)

Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:04.303844"], ["last_sign_in_at", "2018-12-05 18:56:04.303844"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:04.304767"], ["id", 3935]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3935], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (2.1ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3935], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 8.9ms | ActiveRecord: 1.4ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$rVKWMqChLBP9OXWSbV.Bee0CpricLeVCFLP4Sd4nhRWWRQyRdYnl2"], ["created_at", "2018-12-05 18:56:04.425917"], ["updated_at", "2018-12-05 18:56:04.425917"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (4.6ms)

Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:04.453068"], ["last_sign_in_at", "2018-12-05 18:56:04.453068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:04.453972"], ["id", 3936]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3936], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.7ms)
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:56:04.481104"], ["updated_at", "2018-12-05 18:56:04.481104"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3213], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3936], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3936], ["room_id", 3213], ["created_at", "2018-12-05 18:56:04.492910"], ["updated_at", "2018-12-05 18:56:04.492910"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3936], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 1.5ms) Started GET “/appointments/3213” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3213"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3213], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3213')
Rendered appointments/show.html.erb within layouts/application (9.9ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3936], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 2.1ms) Started POST “/appointments.3213” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3936], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3213], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3936], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 3936], ["room_id", 3213], ["created_at", "2018-12-05 18:56:04.576287"], ["updated_at", "2018-12-05 18:56:04.576287"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3936], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$59a.QEnFg.QK7YhEMkpiUO4sqshMW/U/udNuH9JRO.kAidlLxuhvu"], ["created_at", "2018-12-05 18:56:04.609350"], ["updated_at", "2018-12-05 18:56:04.609350"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.2ms)
Rendered users/sessions/new.html.erb within layouts/application (4.2ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:04.646106"], ["last_sign_in_at", "2018-12-05 18:56:04.646106"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:04.647312"], ["id", 3937]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3937], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:56:04.666153"], ["updated_at", "2018-12-05 18:56:04.666153"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3214], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3937], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 3937], ["room_id", 3214], ["created_at", "2018-12-05 18:56:04.676001"], ["updated_at", "2018-12-05 18:56:04.676001"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3937], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3937]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$zmV.yZnl.KMX77D6BsvSwOwFNoqovN4f9pSTawYK4593Bw1Ec4uEC"], ["created_at", "2018-12-05 18:56:04.710101"], ["updated_at", "2018-12-05 18:56:04.710101"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:04.733667"], ["last_sign_in_at", "2018-12-05 18:56:04.733667"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:04.734566"], ["id", 3938]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3938], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 18:56:04.751421"], ["updated_at", "2018-12-05 18:56:04.751421"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3215], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3938], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 3938], ["room_id", 3215], ["created_at", "2018-12-05 18:56:04.761482"], ["updated_at", "2018-12-05 18:56:04.761482"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3938], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3938]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$QbSTqWc8mc03k32fda7hIe1pkTV8ecQRfKjg4p6Z0/ilgXUr6N41u"], ["created_at", "2018-12-05 18:56:04.797341"], ["updated_at", "2018-12-05 18:56:04.797341"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:04.823561"], ["last_sign_in_at", "2018-12-05 18:56:04.823561"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:04.824497"], ["id", 3939]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3939], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$AH.AKY85t5FfXSVEwZoxAuKRTK08QOPNklJg3WHTjysyd2nAVpkDy"], ["created_at", "2018-12-05 18:56:04.853392"], ["updated_at", "2018-12-05 18:56:04.853392"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:04.876971"], ["last_sign_in_at", "2018-12-05 18:56:04.876971"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:04.877867"], ["id", 3940]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3940], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.8ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.7ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:56:04.898926"], ["updated_at", "2018-12-05 18:56:04.898926"], ["tipo_sala", "salaTeste"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:56:04.902408"], ["updated_at", "2018-12-05 18:56:04.902408"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3940], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 1.2ms) Started GET “/appointments/3216” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3216"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3216], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3216')
Rendered appointments/show.html.erb within layouts/application (2.8ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3940], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 1.9ms) Started POST “/appointments.3216” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3940], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3216], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3940], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 3940], ["room_id", 3216], ["created_at", "2018-12-05 18:56:04.966225"], ["updated_at", "2018-12-05 18:56:04.966225"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3940], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$iIzXDG974f3cHVSUbLHf0.dN7VSOeVwMRBQmrpdJq0ac1j6qTamBq"], ["created_at", "2018-12-05 18:56:04.998933"], ["updated_at", "2018-12-05 18:56:04.998933"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:05.023940"], ["last_sign_in_at", "2018-12-05 18:56:05.023940"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:05.024884"], ["id", 3941]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3941], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:56:05.041981"], ["updated_at", "2018-12-05 18:56:05.041981"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:56:05.044908"], ["updated_at", "2018-12-05 18:56:05.044908"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3941], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 1.2ms) Started GET “/appointments/3218” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3218"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3218], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3218')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3941], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 1.9ms) Started POST “/appointments.3218” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3941], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3941], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$CfFje/6bYVjeUHjQkfgsruzvmoKD5GHzZMdHdbaIW5A8fAjJWpbeG"], ["created_at", "2018-12-05 18:56:05.126032"], ["updated_at", "2018-12-05 18:56:05.126032"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:05.149921"], ["last_sign_in_at", "2018-12-05 18:56:05.149921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:05.150811"], ["id", 3942]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3942], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.2ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 1.0ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-05 18:56:05.172357"], ["updated_at", "2018-12-05 18:56:05.172357"], ["tipo_sala", "tipoTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3942], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3942], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 1.6ms) Started DELETE “/rooms/3220” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3220"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3942], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3220], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3220]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3942], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.2ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$jVyf/lfy.y.65iKGCnsEyePhGdA0/RbALwzdziITkjact.etVNOjS"], ["created_at", "2018-12-05 18:56:05.243267"], ["updated_at", "2018-12-05 18:56:05.243267"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-05 18:56:05.247072"], ["updated_at", "2018-12-05 18:56:05.247072"], ["tipo_sala", "tipoTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:05.283804"], ["last_sign_in_at", "2018-12-05 18:56:05.283804"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:05.284874"], ["id", 3943]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3943], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3943], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 1.4ms) Started GET “/rooms/3221/edit” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3221"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3943], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3221], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 1.3ms) Started PATCH “/rooms/3221” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"3221"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3943], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3221], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 13ms (Views: 6.8ms | ActiveRecord: 1.5ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$7s2vV16X8nhcTQTFC4pUuekMmo0fhuv/AOqKIDU843DRZbEa6euUO"], ["created_at", "2018-12-05 18:56:05.391553"], ["updated_at", "2018-12-05 18:56:05.391553"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$KjlISKM0DkqUxLK5uX9mFOZ/CYqUD2SK/lER2W5ebqIYbiCvHEYg6"], ["created_at", "2018-12-05 18:56:05.413207"], ["updated_at", "2018-12-05 18:56:05.413207"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.9ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:05.440053"], ["last_sign_in_at", "2018-12-05 18:56:05.440053"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:05.441083"], ["id", 3945]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3945], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.7ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3945], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 1.3ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-05 18:56:05.481631"], ["updated_at", "2018-12-05 18:56:05.481631"], ["tipo_sala", "Coodernação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-05 18:56:05.484968"], ["updated_at", "2018-12-05 18:56:05.484968"], ["tipo_sala", "Predio CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-05 18:56:05.487454"], ["updated_at", "2018-12-05 18:56:05.487454"], ["tipo_sala", "Salas de Reunião"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$9UFkX98oYFw0TnUdX.BZY.qUEn7Q/E154a/zebNnwdmlXnQHg9qrK"], ["created_at", "2018-12-05 18:56:05.524481"], ["updated_at", "2018-12-05 18:56:05.524481"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:05.551981"], ["last_sign_in_at", "2018-12-05 18:56:05.551981"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:05.552948"], ["id", 3946]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3946], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:56:05.569901"], ["updated_at", "2018-12-05 18:56:05.569901"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:56:05.573298"], ["updated_at", "2018-12-05 18:56:05.573298"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3946], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$N1Byn1bOS6Eg9BrAIuEtyel.bVmATZyCQIPDRq5Cyy7voLs5Widdy"], ["created_at", "2018-12-05 18:56:05.610597"], ["updated_at", "2018-12-05 18:56:05.610597"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:05.635044"], ["last_sign_in_at", "2018-12-05 18:56:05.635044"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:05.635966"], ["id", 3947]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3947], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:56:05.653470"], ["updated_at", "2018-12-05 18:56:05.653470"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:56:05.656346"], ["updated_at", "2018-12-05 18:56:05.656346"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3947], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$f3dkmbSkUOYklHVOScli.eibkji5WlvHjAXU67yuJyQhXKVjV2Xl2"], ["created_at", "2018-12-05 18:56:05.694239"], ["updated_at", "2018-12-05 18:56:05.694239"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:05.718661"], ["last_sign_in_at", "2018-12-05 18:56:05.718661"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:05.719566"], ["id", 3948]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3948], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:56:05.737541"], ["updated_at", "2018-12-05 18:56:05.737541"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:56:05.740427"], ["updated_at", "2018-12-05 18:56:05.740427"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3948], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3948], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3948], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3948], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3948], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 0.7ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-06", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3948], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-06' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 23ms (Views: 6.4ms | ActiveRecord: 2.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$lV.B.jkPpx7NhEO5/mzD.O/gIMUoK7RqDFw9nrlrPtgVHEWhIMvRa"], ["created_at", "2018-12-05 18:56:05.835155"], ["updated_at", "2018-12-05 18:56:05.835155"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:05.874078"], ["last_sign_in_at", "2018-12-05 18:56:05.874078"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:05.875069"], ["id", 3949]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3949], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.0ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (2.3ms)
Rendered users/registrations/new.html.erb within layouts/application (5.0ms)

Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$R/HZ4Tv7IvQSauwqzh3c5O1qjuwj7CObPBgjx0NuXAobukEkuIQNG"], ["created_at", "2018-12-05 18:56:05.955400"], ["updated_at", "2018-12-05 18:56:05.955400"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:56:05.958398"], ["last_sign_in_at", "2018-12-05 18:56:05.958398"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:56:05.959233"], ["id", 3950]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 15ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3950], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.7ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$KDVHD/xX0I9Ik7ur2gJVSe7lSrHd2dtHMJ8lMFPI86tIjVV.w8qzu"], ["created_at", "2018-12-05 18:56:05.990951"], ["updated_at", "2018-12-05 18:56:05.990951"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:06.027719"], ["last_sign_in_at", "2018-12-05 18:56:06.027719"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:06.028535"], ["id", 3951]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3951], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.0ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.6ms) Started GET “/users/3951/edit” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"3951"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3951], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.6ms) Started PUT “/users/3951” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"3951"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3951], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3951], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 3951], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-05 18:56:06.095252"], ["id", 3951]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 16ms (ActiveRecord: 2.8ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3951], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.7ms)

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$FoQLxYrhgVrQtNl0peh72uSkcGlCu8MVo8VVLwZTnO5im7PHYiU76"], ["created_at", "2018-12-05 18:56:06.128418"], ["updated_at", "2018-12-05 18:56:06.128418"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:06.154196"], ["last_sign_in_at", "2018-12-05 18:56:06.154196"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:06.155208"], ["id", 3952]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3952], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 18:56:06.173358"], ["updated_at", "2018-12-05 18:56:06.173358"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3952], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 1.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (3.2ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3952], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 8.7ms | ActiveRecord: 2.2ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3952], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3952], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3952], ["room_id", 1], ["created_at", "2018-12-05 18:56:06.244029"], ["updated_at", "2018-12-05 18:56:06.244029"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3952], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$HSVt2kLJPBcrPDi/XDI0Sey4Z2T0G8Wsvx.n42fc3d1v2HZPaDk3K"], ["created_at", "2018-12-05 18:56:06.268785"], ["updated_at", "2018-12-05 18:56:06.268785"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:56:06.293149"], ["last_sign_in_at", "2018-12-05 18:56:06.293149"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:56:06.294042"], ["id", 3953]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3953], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 18:56:06.311422"], ["updated_at", "2018-12-05 18:56:06.311422"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3953], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 1.4ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3953], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 1.8ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3953], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3953], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3953], ["room_id", 1], ["created_at", "2018-12-05 18:56:06.367468"], ["updated_at", "2018-12-05 18:56:06.367468"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3953], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$692oDoLsVtuGZz443Gc7ZuryG6ycQOAb5t9ZHhfe2mKjyONImW12C"], ["created_at", "2018-12-05 18:56:06.393362"], ["updated_at", "2018-12-05 18:56:06.393362"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (1.3ms)
Rendered password_resets/new.html.erb within layouts/application (4.1ms)

Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.7ms)
Rendered password_resets/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.5ms)

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$v0dj..GmxgHlVTtGPCLf1ek0aMtpEP5MkLcvtVq8r8hcdqgp5ysI2"], ["updated_at", "2018-12-05 18:56:06.455975"], ["id", 3954]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.5ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:56:06 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FueC6K/osDzrRBGclVyZUen16TAPyNXMF6Oj9qaz3RA8GyOdLrBIa"], ["created_at", "2018-12-05 19:00:18.868041"], ["updated_at", "2018-12-05 19:00:18.868041"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ikdhldQWxYv3knui/3BSKO.4LxclOyO.XnOMlC6XAvTqd71SRSTGu"], ["created_at", "2018-12-05 19:00:18.880286"], ["updated_at", "2018-12-05 19:00:18.880286"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:18.914501"], ["updated_at", "2018-12-05 19:00:18.914501"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3231], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3956], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3956], ["room_id", 3231], ["created_at", "2018-12-05 19:00:18.980594"], ["updated_at", "2018-12-05 19:00:18.980594"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"2954"}
Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2954], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3231], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3956], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.4ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.5ms)

UserMailer#status_notification: processed outbound mail in 232.3ms Sent mail to 123@123.com (11.4ms) Date: Wed, 05 Dec 2018 17:00:19 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0820433b575_34c6d8ef14571a0@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c082043396e6_34c6d8ef1457051";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c082043396e6_34c6d8ef1457051 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c082043396e6_34c6d8ef1457051 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c082043396e6_34c6d8ef1457051–

Completed 302 Found in 256ms (ActiveRecord: 2.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KrmbbwF7qhr.7noBi/ZeCuhzaPhpzoXZjSPkzn6JdS0yBuSBTWuzK"], ["created_at", "2018-12-05 19:00:19.259036"], ["updated_at", "2018-12-05 19:00:19.259036"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wtEDmcyLF.dGZeEuGJ1VauPSulpAKP1zauVbLTsZXq1ulmnvR6tu."], ["created_at", "2018-12-05 19:00:19.267075"], ["updated_at", "2018-12-05 19:00:19.267075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:19.271338"], ["updated_at", "2018-12-05 19:00:19.271338"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.8ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3232], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3958], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3958], ["room_id", 3232], ["created_at", "2018-12-05 19:00:19.281054"], ["updated_at", "2018-12-05 19:00:19.281054"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"2955"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2955], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3232], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3958], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-05 19:00:19.292779"], ["id", 2955]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (5.7ms) Date: Wed, 05 Dec 2018 17:00:19 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0820434a05b_34c6d8ef145737d@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c08204349152_34c6d8ef1457280";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c08204349152_34c6d8ef1457280 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c08204349152_34c6d8ef1457280 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c08204349152_34c6d8ef1457280–

Completed 302 Found in 21ms (ActiveRecord: 2.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aUlpgB47REH6E4PVkkGslObS0SCARk6o7fpOw6qvjkjO6CKJLQAdG"], ["created_at", "2018-12-05 19:00:19.316679"], ["updated_at", "2018-12-05 19:00:19.316679"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FErL5d.PN5SV/4BL3hgZw.2HI7QgEmefYt4ZHikVBs4xiJ02RavFy"], ["created_at", "2018-12-05 19:00:19.324618"], ["updated_at", "2018-12-05 19:00:19.324618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:19.328756"], ["updated_at", "2018-12-05 19:00:19.328756"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3233], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3960], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3960], ["room_id", 3233], ["created_at", "2018-12-05 19:00:19.336804"], ["updated_at", "2018-12-05 19:00:19.336804"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lVd1yvKnBkzU0bGDBmbZ.um7hVjf2kaTkpZfR8IkMfpYtx8DsGnnK"], ["created_at", "2018-12-05 19:00:19.352818"], ["updated_at", "2018-12-05 19:00:19.352818"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$y/La/kgIyqd3jf.tn5IYEeZ/YxaYlhydCN/X6yLHlpCLCy4YLCO/m"], ["created_at", "2018-12-05 19:00:19.360288"], ["updated_at", "2018-12-05 19:00:19.360288"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:19.363946"], ["updated_at", "2018-12-05 19:00:19.363946"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3234], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3962], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3962], ["room_id", 3234], ["created_at", "2018-12-05 19:00:19.371466"], ["updated_at", "2018-12-05 19:00:19.371466"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2957], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$Nyvcjbw5iuuVT6jg3KCILuApajWg2sWb9s1HSlgjpOUuzY7.qZvxC"], ["created_at", "2018-12-05 19:00:19.384956"], ["updated_at", "2018-12-05 19:00:19.384956"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3963"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "nwUgg2PN5HobKlTJVev63w"], ["updated_at", "2018-12-05 19:00:19.394403"], ["id", 3963]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-05 19:00:19.398441"], ["reset_sent_at", "2018-12-05 19:00:19.397632"], ["id", 3963]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)

UserMailer#password_reset: processed outbound mail in 11.6ms Sent mail to teste@unb.com.br (6.3ms) Date: Wed, 05 Dec 2018 17:00:19 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c08204365911_34c6d8ef145761@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c08204364885_34c6d8ef1457534";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c08204364885_34c6d8ef1457534 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/nwUgg2PN5HobKlTJVev63w/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c08204364885_34c6d8ef1457534 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/nwUgg2PN5HobKlTJVev63w/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c08204364885_34c6d8ef1457534–

Redirected to test.host/login Completed 302 Found in 30ms (ActiveRecord: 2.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$FB.8FBxtoAs.2sxLH.Sl0uYm52j/8J7OQBEL8PrcK1kujzDXg5Go6"], ["created_at", "2018-12-05 19:00:19.428815"], ["updated_at", "2018-12-05 19:00:19.428815"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$IQIIh7qPFt/XQslKiyUxCOs1YiNXrWCWfoaA3ROoXxGHFpwuu4p5q"], ["created_at", "2018-12-05 19:00:19.448115"], ["updated_at", "2018-12-05 19:00:19.448115"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3965"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$swi2doVBGTlpTIZRs9REb.gZsHQxrz5mwz.KQphAmRNi6FDHuy9X6"], ["updated_at", "2018-12-05 19:00:19.457533"], ["id", 3965]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$GWmYIernr3cl8LPgInULlO7oEY0cRQz5fRVG/GpNweB8zjEI0tFOq"], ["created_at", "2018-12-05 19:00:19.471621"], ["updated_at", "2018-12-05 19:00:19.471621"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"3966"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.5ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$ivdbhzObhlqFaujIYqZZSenfhyuNP1oTFZ2OHqYRyLrPzhVxxJq5m"], ["created_at", "2018-12-05 19:00:19.492699"], ["updated_at", "2018-12-05 19:00:19.492699"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3967"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 20ms (Views: 2.4ms | ActiveRecord: 1.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$CLUJMDLExJF.zE5TTF6OKuXV3yhzH5oEHnaNLu5qY731r7KNSB/zS"], ["created_at", "2018-12-05 19:00:19.526443"], ["updated_at", "2018-12-05 19:00:19.526443"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3968"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$OeN.109NTATe5.xfL9KivOFbuOq9dvf/Kgzt2hcesIrkOTv.D5dvK"], ["created_at", "2018-12-05 19:00:19.547801"], ["updated_at", "2018-12-05 19:00:19.547801"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"3969"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eyBgxZU8DN0pF8i3GGsmOeCjKWFcT8HjTkKn2/9JiPXeMSQGe0LHC"], ["created_at", "2018-12-05 19:00:19.566711"], ["updated_at", "2018-12-05 19:00:19.566711"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0u5Ro3n0SOT4/9/jGOS2hOZiDPqpUwQBzqyh3bIVZQva7RPHKLTx6"], ["created_at", "2018-12-05 19:00:19.583398"], ["updated_at", "2018-12-05 19:00:19.583398"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.1ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$j/pbo2xDErnZSWHf1kGvT.SvuBFkME5GUqBC5wz2af26ymlqroEd."], ["created_at", "2018-12-05 19:00:19.600739"], ["updated_at", "2018-12-05 19:00:19.600739"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:19.604382"], ["updated_at", "2018-12-05 19:00:19.604382"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3235], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3972], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3972], ["room_id", 3235], ["created_at", "2018-12-05 19:00:19.611730"], ["updated_at", "2018-12-05 19:00:19.611730"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DLbeby6Q/eAOrADZQxU1EeFhBHAzDmZea/uH9hFQwSSWkJpMBHKDy"], ["created_at", "2018-12-05 19:00:19.628828"], ["updated_at", "2018-12-05 19:00:19.628828"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:19.633071"], ["updated_at", "2018-12-05 19:00:19.633071"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3236], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3973], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3973], ["room_id", 3236], ["created_at", "2018-12-05 19:00:19.640797"], ["updated_at", "2018-12-05 19:00:19.640797"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 5.0ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1mvM1pLVxNgX7N8Zzlv/W.v6bjfTx956BFiB1Baydz.3wkTcaqvJy"], ["created_at", "2018-12-05 19:00:19.708449"], ["updated_at", "2018-12-05 19:00:19.708449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:19.713138"], ["updated_at", "2018-12-05 19:00:19.713138"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:00:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:19.727112"], ["last_sign_in_at", "2018-12-05 19:00:19.727112"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:19.728592"], ["id", 3974]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3237"}
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3237], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3974], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3974], ["room_id", 3237], ["created_at", "2018-12-05 19:00:19.752061"], ["updated_at", "2018-12-05 19:00:19.752061"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.5ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3237], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dYwZ8XCKDrT.pp4EF83ymuTrvGIpGyAlGNQmcGLWGZkibkAslFnuq"], ["created_at", "2018-12-05 19:00:19.767543"], ["updated_at", "2018-12-05 19:00:19.767543"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:19.772130"], ["updated_at", "2018-12-05 19:00:19.772130"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:00:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:19.777463"], ["last_sign_in_at", "2018-12-05 19:00:19.777463"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:19.778560"], ["id", 3975]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3238"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3238], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3975], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3975], ["room_id", 3238], ["created_at", "2018-12-05 19:00:19.790757"], ["updated_at", "2018-12-05 19:00:19.790757"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9e0ndjWYGV5IfJn2/VWGuOYQTKNkHY1dTPH07Bj/qkjEgsWxtVwDa"], ["created_at", "2018-12-05 19:00:19.805387"], ["updated_at", "2018-12-05 19:00:19.805387"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:19.809948"], ["updated_at", "2018-12-05 19:00:19.809948"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:00:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:19.815924"], ["last_sign_in_at", "2018-12-05 19:00:19.815924"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:19.817052"], ["id", 3976]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3239", "user_id"=>"3976"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3239], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3976], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3976], ["room_id", 3239], ["created_at", "2018-12-05 19:00:19.829183"], ["updated_at", "2018-12-05 19:00:19.829183"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.6ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:00:19 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3239", "user_id"=>"3976"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3976], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3239], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3976], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3976], ["room_id", 3239], ["created_at", "2018-12-05 19:00:19.846113"], ["updated_at", "2018-12-05 19:00:19.846113"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KpUat4ZSZJ528AH2/YcoveEqwuQ17fCrriZyxunU/8qW/6S1HPgfS"], ["created_at", "2018-12-05 19:00:19.858458"], ["updated_at", "2018-12-05 19:00:19.858458"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:19.862676"], ["updated_at", "2018-12-05 19:00:19.862676"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:00:19 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:19.868458"], ["last_sign_in_at", "2018-12-05 19:00:19.868458"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:19.869550"], ["id", 3977]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3240", "user_id"=>"3977"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3240], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3977], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3977], ["room_id", 3240], ["created_at", "2018-12-05 19:00:19.881216"], ["updated_at", "2018-12-05 19:00:19.881216"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.6ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:00:19 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3240", "user_id"=>"3977"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3977], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3240], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3977], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3977], ["room_id", 3240], ["created_at", "2018-12-05 19:00:19.898545"], ["updated_at", "2018-12-05 19:00:19.898545"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 3.4ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3240], ["user_id", 3977], ["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hibtOdbCdHQkq0K.FQGG8uQdOocWYyUBcYwg.ACGUrt4y5Tc8FPO2"], ["created_at", "2018-12-05 19:00:19.915965"], ["updated_at", "2018-12-05 19:00:19.915965"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:19.920373"], ["updated_at", "2018-12-05 19:00:19.920373"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:00:19 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:19.925906"], ["last_sign_in_at", "2018-12-05 19:00:19.925906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:19.926869"], ["id", 3978]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3241", "user_id"=>"3978"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3241], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3978], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3978], ["room_id", 3241], ["created_at", "2018-12-05 19:00:19.938342"], ["updated_at", "2018-12-05 19:00:19.938342"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.5ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:00:19 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3241", "user_id"=>"3978"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 3978], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3241], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3978], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 3978], ["room_id", 3241], ["created_at", "2018-12-05 19:00:19.955111"], ["updated_at", "2018-12-05 19:00:19.955111"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.5ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3241], ["user_id", 3978], ["status", 1], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$92Aecde.gf489wpD8XHnCO3BziBZcBkzw3NRFDUrEiNe6L2kNUBjO"], ["created_at", "2018-12-05 19:00:19.970221"], ["updated_at", "2018-12-05 19:00:19.970221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:19.976075"], ["updated_at", "2018-12-05 19:00:19.976075"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:00:19 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:19.981836"], ["last_sign_in_at", "2018-12-05 19:00:19.981836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:19.983005"], ["id", 3979]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3242"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3242], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PVt2fJlRX0x/vg/A3dr6C.gA5blcJ3fud6who4CzIjypFBb/nak3K"], ["created_at", "2018-12-05 19:00:20.000393"], ["updated_at", "2018-12-05 19:00:20.000393"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:20.004786"], ["updated_at", "2018-12-05 19:00:20.004786"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.009941"], ["last_sign_in_at", "2018-12-05 19:00:20.009941"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.010971"], ["id", 3980]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3243"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uwLCovdlgrVgwmWpj9PFkOHPg/gBU3vUlkJN5lYbs7yEPABGomXV."], ["created_at", "2018-12-05 19:00:20.027151"], ["updated_at", "2018-12-05 19:00:20.027151"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:20.031083"], ["updated_at", "2018-12-05 19:00:20.031083"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3244], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3981], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3981], ["room_id", 3244], ["created_at", "2018-12-05 19:00:20.040953"], ["updated_at", "2018-12-05 19:00:20.040953"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3244” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.046250"], ["last_sign_in_at", "2018-12-05 19:00:20.046250"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.047458"], ["id", 3981]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3244"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3244], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3244')
Rendered appointments/show.html.erb within layouts/application (13.5ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 240ms (Views: 235.3ms | ActiveRecord: 1.3ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$K.yYk0VFSKJLNJJFK8Pb/.6Nqru0dM95fO/DJWbqdslBbsdUyeE6G"], ["created_at", "2018-12-05 19:00:20.306279"], ["updated_at", "2018-12-05 19:00:20.306279"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:20.311921"], ["updated_at", "2018-12-05 19:00:20.311921"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3245], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3982], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3982], ["room_id", 3245], ["created_at", "2018-12-05 19:00:20.320769"], ["updated_at", "2018-12-05 19:00:20.320769"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/2969/edit” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.325627"], ["last_sign_in_at", "2018-12-05 19:00:20.325627"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.326739"], ["id", 3982]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"2969"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2969], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iRD2HsKLULCcQAtWx.G/9O2JZHDC2G60TyQZKh1Eg6UOQ1Ok1YT0S"], ["created_at", "2018-12-05 19:00:20.353773"], ["updated_at", "2018-12-05 19:00:20.353773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.358619"], ["last_sign_in_at", "2018-12-05 19:00:20.358619"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.359720"], ["id", 3983]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pPBNHOzWWCX9A24kYll3Eek53Lq2PwxKOeNA4sQu/ukBlY8NQQNru"], ["created_at", "2018-12-05 19:00:20.385400"], ["updated_at", "2018-12-05 19:00:20.385400"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:20.390333"], ["updated_at", "2018-12-05 19:00:20.390333"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3246], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3984], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3984], ["room_id", 3246], ["created_at", "2018-12-05 19:00:20.398679"], ["updated_at", "2018-12-05 19:00:20.398679"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3246], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3984], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3984], ["room_id", 3246], ["created_at", "2018-12-05 19:00:20.407190"], ["updated_at", "2018-12-05 19:00:20.407190"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.411530"], ["last_sign_in_at", "2018-12-05 19:00:20.411530"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.412697"], ["id", 3984]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3984]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.0ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 21ms (Views: 11.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rSUyGofXySDJh5GHqmLOkeO9Xw20QTlvTDMnBHwTtz7PwJGNwk38G"], ["created_at", "2018-12-05 19:00:20.449510"], ["updated_at", "2018-12-05 19:00:20.449510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:20.455824"], ["updated_at", "2018-12-05 19:00:20.455824"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3247], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3985], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3985], ["room_id", 3247], ["created_at", "2018-12-05 19:00:20.467918"], ["updated_at", "2018-12-05 19:00:20.467918"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3247], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3985], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3985], ["room_id", 3247], ["created_at", "2018-12-05 19:00:20.479932"], ["updated_at", "2018-12-05 19:00:20.479932"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.485618"], ["last_sign_in_at", "2018-12-05 19:00:20.485618"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.486616"], ["id", 3985]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 3985]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$m6df9.bbEzUWabwY6bOLz.TkeraFYQn2EIDXg2csoUnbRISJAlIcq"], ["created_at", "2018-12-05 19:00:20.513323"], ["updated_at", "2018-12-05 19:00:20.513323"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:20.518563"], ["updated_at", "2018-12-05 19:00:20.518563"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3248], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3986], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3986], ["room_id", 3248], ["created_at", "2018-12-05 19:00:20.529372"], ["updated_at", "2018-12-05 19:00:20.529372"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/2974” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.534826"], ["last_sign_in_at", "2018-12-05 19:00:20.534826"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.536242"], ["id", 3986]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2974"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2974], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2974]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ubHf0pilK/39TMMl9mZDDuq2.j3EGEjKsRMhQtf.vNpiOHw8x5frq"], ["created_at", "2018-12-05 19:00:20.559714"], ["updated_at", "2018-12-05 19:00:20.559714"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:20.565036"], ["updated_at", "2018-12-05 19:00:20.565036"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CiBK8ApjEmcHicYL.bprQ.ZjEWx35IXvbAMYXGfeO/pN0prUzGe42"], ["created_at", "2018-12-05 19:00:20.573200"], ["updated_at", "2018-12-05 19:00:20.573200"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3249], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3988], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3988], ["room_id", 3249], ["created_at", "2018-12-05 19:00:20.581819"], ["updated_at", "2018-12-05 19:00:20.581819"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2975” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.587225"], ["last_sign_in_at", "2018-12-05 19:00:20.587225"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.588180"], ["id", 3987]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2975"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2975], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3249], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3988], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 12ms (ActiveRecord: 2.1ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8PTC80f5Sw8.iOdEkrDM3u3DVWspoUiIRzrTimug9esCImUsxQUb."], ["created_at", "2018-12-05 19:00:20.618775"], ["updated_at", "2018-12-05 19:00:20.618775"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:20.624096"], ["updated_at", "2018-12-05 19:00:20.624096"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YnyZcyn5/xKOGlMmyjDsbuBbvB3AoctgVYOVCkqblfeNdDVHZ9nG6"], ["created_at", "2018-12-05 19:00:20.632441"], ["updated_at", "2018-12-05 19:00:20.632441"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3250], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3990], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3990], ["room_id", 3250], ["created_at", "2018-12-05 19:00:20.642321"], ["updated_at", "2018-12-05 19:00:20.642321"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2976” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.648647"], ["last_sign_in_at", "2018-12-05 19:00:20.648647"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.650190"], ["id", 3989]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"2976"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2976], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3250], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3990], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 9ms (ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FGGVO08RBXfec/iq11OeDevnfkwvpe61NvVIQ5CiOzw34rhKO29Ee"], ["created_at", "2018-12-05 19:00:20.675457"], ["updated_at", "2018-12-05 19:00:20.675457"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:20.680627"], ["updated_at", "2018-12-05 19:00:20.680627"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PB1.2DI.KJsKkVeNPhEDeuspDYCcnGvbTJe2P6SQbpJ3FzryurxJ6"], ["created_at", "2018-12-05 19:00:20.688580"], ["updated_at", "2018-12-05 19:00:20.688580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3251], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3992], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3992], ["room_id", 3251], ["created_at", "2018-12-05 19:00:20.697707"], ["updated_at", "2018-12-05 19:00:20.697707"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/2977” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.704095"], ["last_sign_in_at", "2018-12-05 19:00:20.704095"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.705277"], ["id", 3991]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"2977"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2977], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3251], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3992], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-05 19:00:20.718148"], ["id", 2977]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.3ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.2ms)

UserMailer#status_notification: processed outbound mail in 6.3ms Sent mail to 123@123.com (7.0ms) Date: Wed, 05 Dec 2018 17:00:20 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c082044b2a32_34c6d8ef14583ae@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c082044b18ef_34c6d8ef14582ac";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c082044b18ef_34c6d8ef14582ac Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c082044b18ef_34c6d8ef14582ac Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c082044b18ef_34c6d8ef14582ac–

Completed 302 Found in 26ms (ActiveRecord: 2.7ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MZIxIB3UrGfYxV/9zUP4muhaqD7uLhTRcTAAQ1No.axipbzlwz7US"], ["created_at", "2018-12-05 19:00:20.748161"], ["updated_at", "2018-12-05 19:00:20.748161"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:20.752954"], ["updated_at", "2018-12-05 19:00:20.752954"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7Wg4vpbrOZw8kiD0dBIBOO8cvxXrkLCTaAi/ell6Ws3T7hLSz03Pq"], ["created_at", "2018-12-05 19:00:20.761367"], ["updated_at", "2018-12-05 19:00:20.761367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3252], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3994], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3994], ["room_id", 3252], ["created_at", "2018-12-05 19:00:20.771129"], ["updated_at", "2018-12-05 19:00:20.771129"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 19:00:20.775594"], ["id", 2978]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3252], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3994], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3994], ["room_id", 3252], ["created_at", "2018-12-05 19:00:20.783331"], ["updated_at", "2018-12-05 19:00:20.783331"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 19:00:20.787134"], ["id", 2979]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.791599"], ["last_sign_in_at", "2018-12-05 19:00:20.791599"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.792735"], ["id", 3993]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3994], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3252], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3994], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3252], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (9.3ms)
Rendered layouts/_header-admin.html.erb (3.5ms)

Completed 200 OK in 21ms (Views: 16.1ms | ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tGZdtKEkrZPMu0yvMXYys.Aq3ugRuk0GYemPHE/q0pPSp7vkwiq.6"], ["created_at", "2018-12-05 19:00:20.828805"], ["updated_at", "2018-12-05 19:00:20.828805"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:20.835102"], ["updated_at", "2018-12-05 19:00:20.835102"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eXXOrU7PfxSYA.g90pqfB.D8EfLvSrz4o8WA/fyMshjKlzg/J9xgq"], ["created_at", "2018-12-05 19:00:20.843315"], ["updated_at", "2018-12-05 19:00:20.843315"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3253], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3996], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3996], ["room_id", 3253], ["created_at", "2018-12-05 19:00:20.852646"], ["updated_at", "2018-12-05 19:00:20.852646"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 19:00:20.857014"], ["id", 2980]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3253], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3996], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 3996], ["room_id", 3253], ["created_at", "2018-12-05 19:00:20.866011"], ["updated_at", "2018-12-05 19:00:20.866011"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 19:00:20.869822"], ["id", 2981]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.873887"], ["last_sign_in_at", "2018-12-05 19:00:20.873887"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.874966"], ["id", 3995]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3996], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3253], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 3996], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3253], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.1ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 17ms (Views: 13.2ms | ActiveRecord: 1.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$E7RSKtptDs0xcEuC0nN48ekBRJw/MQOJLh583oPNHNS8VvpxC75u6"], ["created_at", "2018-12-05 19:00:20.909855"], ["updated_at", "2018-12-05 19:00:20.909855"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.916465"], ["last_sign_in_at", "2018-12-05 19:00:20.916465"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.917799"], ["id", 3997]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.1ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 16ms (Views: 14.1ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zWBzt.bYPZdHRZh5BESXQ.v0QlwTz8UFbGlpepgB57nyF/nPPImfG"], ["created_at", "2018-12-05 19:00:20.953089"], ["updated_at", "2018-12-05 19:00:20.953089"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.958512"], ["last_sign_in_at", "2018-12-05 19:00:20.958512"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.959499"], ["id", 3998]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q.7CClzJIEfJaeZgI/7xzuyUsZmbYoVlhZHqT4oRpj3N5hHc8cA0q"], ["created_at", "2018-12-05 19:00:20.978442"], ["updated_at", "2018-12-05 19:00:20.978442"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:20 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:20.991078"], ["last_sign_in_at", "2018-12-05 19:00:20.991078"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:20.992124"], ["id", 3999]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m58SPsSGCWie23AOLqTvLu/FfIOksow6nHCmFVVSpsAOPTJ/yKeT2"], ["created_at", "2018-12-05 19:00:21.018341"], ["updated_at", "2018-12-05 19:00:21.018341"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.023377"], ["last_sign_in_at", "2018-12-05 19:00:21.023377"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.024517"], ["id", 4000]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:21 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o4EEUPp7kksSwrqigO97huwIltaekvrswzM.cFLpwDq7e6swh81/m"], ["created_at", "2018-12-05 19:00:21.059090"], ["updated_at", "2018-12-05 19:00:21.059090"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.063097"], ["updated_at", "2018-12-05 19:00:21.063097"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3254” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.067003"], ["last_sign_in_at", "2018-12-05 19:00:21.067003"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.068511"], ["id", 4001]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3254"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3254], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RGrD6cYKgCDktOMC1gHfFe3W9ohtEfZS6GlwE7JgxyE9qLlNuJ15C"], ["created_at", "2018-12-05 19:00:21.092492"], ["updated_at", "2018-12-05 19:00:21.092492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.097164"], ["updated_at", "2018-12-05 19:00:21.097164"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3255” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.101185"], ["last_sign_in_at", "2018-12-05 19:00:21.101185"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.102385"], ["id", 4002]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3255"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3255], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.121379"], ["updated_at", "2018-12-05 19:00:21.121379"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3256” for 127.0.0.1 at 2018-12-05 17:00:21 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3256"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cpDN0sOzsDenH2BsBGGlWeXu6tU24eu8R0B4bGC4JLP6t1mSIH3f."], ["created_at", "2018-12-05 19:00:21.137746"], ["updated_at", "2018-12-05 19:00:21.137746"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.142334"], ["updated_at", "2018-12-05 19:00:21.142334"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3257” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.146637"], ["last_sign_in_at", "2018-12-05 19:00:21.146637"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.147696"], ["id", 4003]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3257"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.170263"], ["updated_at", "2018-12-05 19:00:21.170263"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3258” for 127.0.0.1 at 2018-12-05 17:00:21 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3258"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xwFZteCAOYW6EjvJ9j8Mqu3z6ScMPR1LQ/PE5In4mfuCjwW0F.AIC"], ["created_at", "2018-12-05 19:00:21.187827"], ["updated_at", "2018-12-05 19:00:21.187827"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.192666"], ["updated_at", "2018-12-05 19:00:21.192666"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3259/edit” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.5ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.196692"], ["last_sign_in_at", "2018-12-05 19:00:21.196692"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.197943"], ["id", 4004]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3259"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3259], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.5ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 13ms (Views: 10.6ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QMN2XvuWVbf76tgJ3rG28.uulOT9XHiozWbJLKw9P4NRGycoxLHC6"], ["created_at", "2018-12-05 19:00:21.226633"], ["updated_at", "2018-12-05 19:00:21.226633"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.235072"], ["updated_at", "2018-12-05 19:00:21.235072"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3260/edit” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.239217"], ["last_sign_in_at", "2018-12-05 19:00:21.239217"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.240465"], ["id", 4005]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3260"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3260], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.262395"], ["updated_at", "2018-12-05 19:00:21.262395"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3261” for 127.0.0.1 at 2018-12-05 17:00:21 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3261"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$02KPQ0.V8MCfZHE.ZtO8EOLy7kV2YxtX4uRJXXop4307eZmcKIoW."], ["created_at", "2018-12-05 19:00:21.279149"], ["updated_at", "2018-12-05 19:00:21.279149"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.284604"], ["last_sign_in_at", "2018-12-05 19:00:21.284604"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.285548"], ["id", 4006]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.292219"], ["updated_at", "2018-12-05 19:00:21.292219"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cBqPpiibX.LFwxcjy9vfr.FWTZRARzxL2SoFNYkbr6albqo7VqqEi"], ["created_at", "2018-12-05 19:00:21.307597"], ["updated_at", "2018-12-05 19:00:21.307597"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.313777"], ["last_sign_in_at", "2018-12-05 19:00:21.313777"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.314854"], ["id", 4007]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.322075"], ["updated_at", "2018-12-05 19:00:21.322075"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gYTbKvCXTGAP4QALPrynmOOyuT6jPqOz.1TSjMl2utrSb49MolYvO"], ["created_at", "2018-12-05 19:00:21.338963"], ["updated_at", "2018-12-05 19:00:21.338963"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.346454"], ["last_sign_in_at", "2018-12-05 19:00:21.346454"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.347620"], ["id", 4008]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bcAIrbQWw2Kw6.jzjs5pNOcqst.Vv8ibauYIU5SWEhn7vSkMyWxnu"], ["created_at", "2018-12-05 19:00:21.368398"], ["updated_at", "2018-12-05 19:00:21.368398"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.374315"], ["last_sign_in_at", "2018-12-05 19:00:21.374315"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.375608"], ["id", 4009]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q7hMVi37U.cbt1nNxL/IlOtfCFA7qzWOc3sRWF9daZUPbQs8VJWAi"], ["created_at", "2018-12-05 19:00:21.395419"], ["updated_at", "2018-12-05 19:00:21.395419"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.401344"], ["last_sign_in_at", "2018-12-05 19:00:21.401344"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.402542"], ["id", 4010]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1PvjZhb.iRGHpvUImGHNjudnZTL9Yp2IizhP8uiPm/MftoQaXwbiS"], ["created_at", "2018-12-05 19:00:21.423370"], ["updated_at", "2018-12-05 19:00:21.423370"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.427898"], ["updated_at", "2018-12-05 19:00:21.427898"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3264” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.433358"], ["last_sign_in_at", "2018-12-05 19:00:21.433358"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.434391"], ["id", 4011]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3264"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3264], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 19:00:21.443086"], ["id", 3264]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3264 Completed 302 Found in 7ms (ActiveRecord: 1.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LzrQlUPw66K94I5j3JrYme.WHdHik9YxlJlBMqDllKJv9j0lG9gl6"], ["created_at", "2018-12-05 19:00:21.458668"], ["updated_at", "2018-12-05 19:00:21.458668"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.463393"], ["updated_at", "2018-12-05 19:00:21.463393"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3265” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.469527"], ["last_sign_in_at", "2018-12-05 19:00:21.469527"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.470697"], ["id", 4012]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3265"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3265], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 19:00:21.478708"], ["id", 3265]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3265 Completed 302 Found in 7ms (ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ujuQiDgsADnTfrzywrld0epyRmLInkhP26SwRcOtLlpv3.Re64Ax2"], ["created_at", "2018-12-05 19:00:21.492219"], ["updated_at", "2018-12-05 19:00:21.492219"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.496764"], ["updated_at", "2018-12-05 19:00:21.496764"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3266” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.503006"], ["last_sign_in_at", "2018-12-05 19:00:21.503006"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.504215"], ["id", 4013]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3266"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3266], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-admin.html.erb (2.2ms)

Completed 200 OK in 15ms (Views: 10.2ms | ActiveRecord: 0.8ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aSNpesvQk6np8zYARu/gu.E4zAHbZzd8iIgG0IesqgbXh81NZB6Wa"], ["created_at", "2018-12-05 19:00:21.536265"], ["updated_at", "2018-12-05 19:00:21.536265"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.541153"], ["updated_at", "2018-12-05 19:00:21.541153"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3267” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.547280"], ["last_sign_in_at", "2018-12-05 19:00:21.547280"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.548506"], ["id", 4014]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3267"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3267], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 16ms (Views: 10.1ms | ActiveRecord: 1.1ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WuLAJmBhT/1vvx/ETCpia.UYXE8L3sSPbttYjuhCM0uHaV8YzVPQq"], ["created_at", "2018-12-05 19:00:21.583181"], ["updated_at", "2018-12-05 19:00:21.583181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.590681"], ["last_sign_in_at", "2018-12-05 19:00:21.590681"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.591903"], ["id", 4015]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.7ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eB7am5YhmG1WaMKiIO/8quR11Ocan1ESiloe0W9JJtttw5JCAI95O"], ["created_at", "2018-12-05 19:00:21.608456"], ["updated_at", "2018-12-05 19:00:21.608456"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.613240"], ["updated_at", "2018-12-05 19:00:21.613240"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3268” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.617233"], ["last_sign_in_at", "2018-12-05 19:00:21.617233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.618285"], ["id", 4016]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3268"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3268], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3268]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rdiAMWQnASucycP/sWTcRuyRH.EIprNzNMGAiEMCghU8XKCrVptne"], ["created_at", "2018-12-05 19:00:21.639838"], ["updated_at", "2018-12-05 19:00:21.639838"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.644888"], ["updated_at", "2018-12-05 19:00:21.644888"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3269” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.649052"], ["last_sign_in_at", "2018-12-05 19:00:21.649052"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.650322"], ["id", 4017]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3269"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3269], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3269]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lxgK7gpaKAtIuRgl5kGZ4.38X.KlEhdjT2eABJydwZLb3Ke7uu0Ea"], ["created_at", "2018-12-05 19:00:21.673836"], ["updated_at", "2018-12-05 19:00:21.673836"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.679905"], ["updated_at", "2018-12-05 19:00:21.679905"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3270” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.684163"], ["last_sign_in_at", "2018-12-05 19:00:21.684163"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.685178"], ["id", 4018]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3270"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FH0HNBb.HeS0Rk5ictPhnex2JLMoY482jhGjpYwNU09ex6hCDWfvW"], ["created_at", "2018-12-05 19:00:21.702593"], ["updated_at", "2018-12-05 19:00:21.702593"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.707362"], ["updated_at", "2018-12-05 19:00:21.707362"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3271” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.712160"], ["last_sign_in_at", "2018-12-05 19:00:21.712160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.713206"], ["id", 4019]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3271"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FM6U6AjY0XIzUKj2EG7h8uBc0dw3NjnGe6ONfIDRmo1JwCVp80j/m"], ["created_at", "2018-12-05 19:00:21.780271"], ["updated_at", "2018-12-05 19:00:21.780271"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.784968"], ["last_sign_in_at", "2018-12-05 19:00:21.784968"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.786066"], ["id", 4020]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FziFOUo9oLPcYwq1R/KoJOiEw1fh.IGJrW8YMK9UE102LbgXXfrlq"], ["created_at", "2018-12-05 19:00:21.814058"], ["updated_at", "2018-12-05 19:00:21.814058"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.818270"], ["updated_at", "2018-12-05 19:00:21.818270"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.822590"], ["updated_at", "2018-12-05 19:00:21.822590"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.826330"], ["updated_at", "2018-12-05 19:00:21.826330"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3272], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4021], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4021], ["room_id", 3272], ["created_at", "2018-12-05 19:00:21.837905"], ["updated_at", "2018-12-05 19:00:21.837905"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.843076"], ["last_sign_in_at", "2018-12-05 19:00:21.843076"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.844239"], ["id", 4021]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 24ms (Views: 8.3ms | ActiveRecord: 1.8ms)

Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6AkJ.QkP7.z7SxJ8675jQeA4.w4a4yf1dFCXGj4/m7fpD.BIV0t/2"], ["created_at", "2018-12-05 19:00:21.887029"], ["updated_at", "2018-12-05 19:00:21.887029"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.892001"], ["updated_at", "2018-12-05 19:00:21.892001"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.896128"], ["updated_at", "2018-12-05 19:00:21.896128"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:00:21.899788"], ["updated_at", "2018-12-05 19:00:21.899788"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3275], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4022], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4022], ["room_id", 3275], ["created_at", "2018-12-05 19:00:21.911312"], ["updated_at", "2018-12-05 19:00:21.911312"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-05 17:00:21 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:21.916502"], ["last_sign_in_at", "2018-12-05 19:00:21.916502"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:21.917596"], ["id", 4022]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.5ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$SdyJEUOmuAvg..uWFl2uxOBlihZd/gtiJSkV0Pv06MvOc23dp0bSa"], ["created_at", "2018-12-05 19:00:30.119815"], ["updated_at", "2018-12-05 19:00:30.119815"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (19.6ms)
Rendered users/sessions/new.html.erb within layouts/application (259.2ms)

Completed 200 OK in 286ms (Views: 272.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:30.487427"], ["last_sign_in_at", "2018-12-05 19:00:30.487427"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:30.488722"], ["id", 4023]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 23ms (ActiveRecord: 2.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4023], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.8ms)
Rendered layouts/_header-admin.html.erb (2.2ms)

Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4023], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 1.0ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by RoomsController#new as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4023], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.4ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 37ms (Views: 12.7ms | ActiveRecord: 6.8ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4023], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4023], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.8ms)

 (0.6ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$/9HoRudukyO9Sft/yweuO.2QPi0rZWuW8IuLq120QHZKJsxqbvi9a"], ["created_at", "2018-12-05 19:00:30.622266"], ["updated_at", "2018-12-05 19:00:30.622266"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:30.647782"], ["last_sign_in_at", "2018-12-05 19:00:30.647782"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:30.648871"], ["id", 4024]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4024], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4024], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by RoomsController#new as HTML

User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4024], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 1.2ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4024], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4024], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.2ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.4ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$vJW3M6usPKzBZePV9Pf7neZNa2oG2qIFlfbX2m.yahQcps9/kCEDe"], ["created_at", "2018-12-05 19:00:30.744507"], ["updated_at", "2018-12-05 19:00:30.744507"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:30.771920"], ["last_sign_in_at", "2018-12-05 19:00:30.771920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:30.772831"], ["id", 4025]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4025], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Nt8VJ5qf1uvrrrggpK8BXu2AasNLm95lyce8Rq69Xy39PQf0DM1iu"], ["created_at", "2018-12-05 19:00:30.806480"], ["updated_at", "2018-12-05 19:00:30.806480"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 5ms (ActiveRecord: 1.0ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.0ms)

Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$NF6PWWoBb7kI6rL5PYPikeIbXoJrHGOX/rXU05XJjE/k6yYjm9tI6"], ["created_at", "2018-12-05 19:00:30.857189"], ["updated_at", "2018-12-05 19:00:30.857189"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:30.881784"], ["last_sign_in_at", "2018-12-05 19:00:30.881784"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:30.882755"], ["id", 4027]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4027], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.7ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:00:30.903578"], ["updated_at", "2018-12-05 19:00:30.903578"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4027], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 1.3ms) Started GET “/appointments/3278” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3278"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3278], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3278')
Rendered appointments/show.html.erb within layouts/application (12.4ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4027], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 32ms (Views: 15.5ms | ActiveRecord: 5.6ms) Started POST “/appointments.3278” for 127.0.0.1 at 2018-12-05 17:00:30 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4027], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3278], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4027], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4027], ["room_id", 3278], ["created_at", "2018-12-05 19:00:31.025933"], ["updated_at", "2018-12-05 19:00:31.025933"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 40ms (ActiveRecord: 6.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4027], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (2.5ms)

Completed 200 OK in 40ms (Views: 8.1ms | ActiveRecord: 1.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$rB1i9wVwY1gkzU66YjM4gO8675qBAgtUQlyexx8m.gBJlb2UwM4US"], ["created_at", "2018-12-05 19:00:31.089227"], ["updated_at", "2018-12-05 19:00:31.089227"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.5ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:31.115281"], ["last_sign_in_at", "2018-12-05 19:00:31.115281"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:31.116433"], ["id", 4028]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4028], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:00:31.138303"], ["updated_at", "2018-12-05 19:00:31.138303"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3279], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4028], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4028], ["room_id", 3279], ["created_at", "2018-12-05 19:00:31.150063"], ["updated_at", "2018-12-05 19:00:31.150063"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4028], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 1.4ms) Started GET “/appointments/3279” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3279"}
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3279], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3279')
Rendered appointments/show.html.erb within layouts/application (7.7ms)
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4028], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 17ms (Views: 13.3ms | ActiveRecord: 2.2ms) Started POST “/appointments.3279” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4028], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3279], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4028], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4028], ["room_id", 3279], ["created_at", "2018-12-05 19:00:31.220824"], ["updated_at", "2018-12-05 19:00:31.220824"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4028], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.9ms)

 (0.6ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$3ZLytTVxVGLSrsxdDxGd7.DStpN9QPzZS1lmmmn.gFq2jIYOy7CVS"], ["created_at", "2018-12-05 19:00:31.252478"], ["updated_at", "2018-12-05 19:00:31.252478"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:31.278530"], ["last_sign_in_at", "2018-12-05 19:00:31.278530"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:31.279598"], ["id", 4029]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4029], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (2.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:00:31.300128"], ["updated_at", "2018-12-05 19:00:31.300128"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3280], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4029], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4029], ["room_id", 3280], ["created_at", "2018-12-05 19:00:31.313278"], ["updated_at", "2018-12-05 19:00:31.313278"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4029], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4029]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.0ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 22ms (Views: 9.1ms | ActiveRecord: 1.4ms) Started DELETE “/appointments/2987” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2987"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2987], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2987]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4029], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4029]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (1.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$xW5nFR.uYgLASYhnuaoNweB/vNRy4sPEN8zYZS/2Hxp/VUgwBMF1."], ["created_at", "2018-12-05 19:00:31.386114"], ["updated_at", "2018-12-05 19:00:31.386114"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.3ms)
Rendered users/sessions/new.html.erb within layouts/application (4.0ms)

Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:31.414105"], ["last_sign_in_at", "2018-12-05 19:00:31.414105"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:31.415179"], ["id", 4030]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4030], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 19:00:31.433429"], ["updated_at", "2018-12-05 19:00:31.433429"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3281], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4030], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 4030], ["room_id", 3281], ["created_at", "2018-12-05 19:00:31.444697"], ["updated_at", "2018-12-05 19:00:31.444697"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4030], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4030]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 15ms (Views: 10.6ms | ActiveRecord: 1.4ms) Started DELETE “/appointments/2988” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2988"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2988], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2988]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4030], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4030]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 13ms (Views: 8.8ms | ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$eHmDkg0wiReyWAfsRbblSe8N6Peab1psdEzgxGMaTfaydyfFHPIry"], ["created_at", "2018-12-05 19:00:31.524860"], ["updated_at", "2018-12-05 19:00:31.524860"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.8ms)
Rendered users/sessions/new.html.erb within layouts/application (5.7ms)

Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:31.561800"], ["last_sign_in_at", "2018-12-05 19:00:31.561800"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:31.562822"], ["id", 4031]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4031], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.9ms)
Rendered layouts/_header-admin.html.erb (2.4ms)

Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-05 19:00:31.587525"], ["updated_at", "2018-12-05 19:00:31.587525"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-05 19:00:31.591166"], ["updated_at", "2018-12-05 19:00:31.591166"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4031], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (5.5ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4031], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 16ms (Views: 12.8ms | ActiveRecord: 1.4ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.0ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4031], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (2.6ms)

Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$V5vWQMpDD80a.01jXXKsDOycpULhs8UvdeQ20dwv3etXCYcH3SJdC"], ["created_at", "2018-12-05 19:00:31.672858"], ["updated_at", "2018-12-05 19:00:31.672858"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.8ms)
Rendered users/sessions/new.html.erb within layouts/application (4.7ms)

Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:31.705150"], ["last_sign_in_at", "2018-12-05 19:00:31.705150"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:31.706743"], ["id", 4032]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4032], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.7ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (2.2ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4032], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 1.5ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$7QwgyTFAuygsAqXxrAHrC.iM42bDF9kSCMOAUzOb/Jm9dlQcI3JWW"], ["created_at", "2018-12-05 19:00:31.833370"], ["updated_at", "2018-12-05 19:00:31.833370"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.1ms)
Rendered users/sessions/new.html.erb within layouts/application (11.5ms)

Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:31.870886"], ["last_sign_in_at", "2018-12-05 19:00:31.870886"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:31.872205"], ["id", 4033]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4033], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:00:31.895238"], ["updated_at", "2018-12-05 19:00:31.895238"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3284], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4033], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4033], ["room_id", 3284], ["created_at", "2018-12-05 19:00:31.907247"], ["updated_at", "2018-12-05 19:00:31.907247"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4033], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 1.5ms) Started GET “/appointments/3284” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3284"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3284], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3284')
Rendered appointments/show.html.erb within layouts/application (10.0ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4033], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 22ms (Views: 17.5ms | ActiveRecord: 2.1ms) Started POST “/appointments.3284” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4033], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3284], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4033], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4033], ["room_id", 3284], ["created_at", "2018-12-05 19:00:31.991790"], ["updated_at", "2018-12-05 19:00:31.991790"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 3.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:31 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4033], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (1.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$p47OyZlZRsK.W2X0Qp/F6eeWyJ/.tJjMqTZQwh0VNOzn5jwrhXZgO"], ["created_at", "2018-12-05 19:00:32.024940"], ["updated_at", "2018-12-05 19:00:32.024940"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.1ms)
Rendered users/sessions/new.html.erb within layouts/application (4.3ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:32.053849"], ["last_sign_in_at", "2018-12-05 19:00:32.053849"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:32.054820"], ["id", 4034]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4034], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:00:32.084484"], ["updated_at", "2018-12-05 19:00:32.084484"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3285], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4034], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4034], ["room_id", 3285], ["created_at", "2018-12-05 19:00:32.093120"], ["updated_at", "2018-12-05 19:00:32.093120"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4034], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4034]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$qL29Rd.HFnmFUyTlRk3rM.HYdizPdPccUWcZC7/7s8aJEr40Zd2xm"], ["created_at", "2018-12-05 19:00:32.128304"], ["updated_at", "2018-12-05 19:00:32.128304"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.6ms)
Rendered users/sessions/new.html.erb within layouts/application (4.4ms)

Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (7.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:32.157555"], ["last_sign_in_at", "2018-12-05 19:00:32.157555"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:32.158692"], ["id", 4035]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 8.8ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4035], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.7ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 19:00:32.185849"], ["updated_at", "2018-12-05 19:00:32.185849"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3286], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4035], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 4035], ["room_id", 3286], ["created_at", "2018-12-05 19:00:32.196390"], ["updated_at", "2018-12-05 19:00:32.196390"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4035], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4035]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 0.9ms)

 (1.0ms)  ROLLBACK
 (3.6ms)  BEGIN
 (3.1ms)  COMMIT
 (1.5ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$kGp4ltSQbFFhif/PKo36y.q23CzZ.4Hz9OnMBnEVNMQpBXbDuwyZG"], ["created_at", "2018-12-05 19:00:32.248045"], ["updated_at", "2018-12-05 19:00:32.248045"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:32.272749"], ["last_sign_in_at", "2018-12-05 19:00:32.272749"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:32.273788"], ["id", 4036]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4036], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$XNbFgmFVJcQX4gY.DjqBaeDCcliiJtPSSFWHKeRgm0wZxatEySSkS"], ["created_at", "2018-12-05 19:00:32.304977"], ["updated_at", "2018-12-05 19:00:32.304977"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:32.330729"], ["last_sign_in_at", "2018-12-05 19:00:32.330729"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:32.331761"], ["id", 4037]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4037], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 19:00:32.349569"], ["updated_at", "2018-12-05 19:00:32.349569"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:00:32.352736"], ["updated_at", "2018-12-05 19:00:32.352736"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4037], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 1.5ms) Started GET “/appointments/3287” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3287"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3287], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3287')
Rendered appointments/show.html.erb within layouts/application (2.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4037], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 1.8ms) Started POST “/appointments.3287” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4037], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3287], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4037], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4037], ["room_id", 3287], ["created_at", "2018-12-05 19:00:32.417345"], ["updated_at", "2018-12-05 19:00:32.417345"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4037], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.4ms)
Rendered layouts/_header-admin.html.erb (2.3ms)

Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 1.1ms)

 (1.7ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$VRdfShU77iWkbzvw9ZANKuvRYzC5itNSjhNpj9YCd4gmVRPgrJoMi"], ["created_at", "2018-12-05 19:00:32.453397"], ["updated_at", "2018-12-05 19:00:32.453397"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:32.478107"], ["last_sign_in_at", "2018-12-05 19:00:32.478107"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:32.479257"], ["id", 4038]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4038], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.6ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 19:00:32.496827"], ["updated_at", "2018-12-05 19:00:32.496827"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:00:32.499567"], ["updated_at", "2018-12-05 19:00:32.499567"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4038], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 1.4ms) Started GET “/appointments/3289” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3289"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3289], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3289')
Rendered appointments/show.html.erb within layouts/application (2.8ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4038], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 1.7ms) Started POST “/appointments.3289” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4038], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4038], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.2ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$G1VG783wVzlV6BsKVZ9IIeDgwLLrTQMkLA20mh2xb9hSqSGDHTlyy"], ["created_at", "2018-12-05 19:00:32.579949"], ["updated_at", "2018-12-05 19:00:32.579949"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:32.604340"], ["last_sign_in_at", "2018-12-05 19:00:32.604340"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:32.605410"], ["id", 4039]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4039], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-05 19:00:32.622971"], ["updated_at", "2018-12-05 19:00:32.622971"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4039], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.7ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by RoomsController#index as HTML

User Load (5.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4039], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-admin.html.erb (5.5ms)

Completed 200 OK in 22ms (Views: 13.2ms | ActiveRecord: 5.8ms) Started DELETE “/rooms/3291” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3291"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4039], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3291], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3291]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4039], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$6kKqqHwx8P1WvByFSO8sIu72aG8xiPTmNZeWqJUm4QQVYmPo/MYIS"], ["created_at", "2018-12-05 19:00:32.703941"], ["updated_at", "2018-12-05 19:00:32.703941"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-05 19:00:32.707928"], ["updated_at", "2018-12-05 19:00:32.707928"], ["tipo_sala", "tipoTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:32.744623"], ["last_sign_in_at", "2018-12-05 19:00:32.744623"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:32.745719"], ["id", 4040]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4040], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.8ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4040], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 1.3ms) Started GET “/rooms/3292/edit” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3292"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4040], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3292], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 1.4ms) Started PATCH “/rooms/3292” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"3292"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4040], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3292], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 1.3ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$RZ/dh5yVjwbGesQFHc9o4uUoAFkCi0piU2qZJvCweN81aWmsbA3Qu"], ["created_at", "2018-12-05 19:00:32.850594"], ["updated_at", "2018-12-05 19:00:32.850594"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$CcvUXWVNNs7UBMLYXk2B2.VUhVWZFvMpOQI0DyH4PtGBkgvfQRE4C"], ["created_at", "2018-12-05 19:00:32.870815"], ["updated_at", "2018-12-05 19:00:32.870815"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:32.896445"], ["last_sign_in_at", "2018-12-05 19:00:32.896445"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:32.897479"], ["id", 4042]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4042], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4042], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (12.0ms)

Completed 200 OK in 21ms (Views: 17.0ms | ActiveRecord: 1.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-05 19:00:32.939364"], ["updated_at", "2018-12-05 19:00:32.939364"], ["tipo_sala", "Coodernação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-05 19:00:32.942408"], ["updated_at", "2018-12-05 19:00:32.942408"], ["tipo_sala", "Predio CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-05 19:00:32.944930"], ["updated_at", "2018-12-05 19:00:32.944930"], ["tipo_sala", "Salas de Reunião"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.4ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Y2bIkA7BRXWM5OepqcvxSOzjA3/t79Q8bmYj3F5i.Gj1npIjhS56W"], ["created_at", "2018-12-05 19:00:32.983453"], ["updated_at", "2018-12-05 19:00:32.983453"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:32 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:33.008837"], ["last_sign_in_at", "2018-12-05 19:00:33.008837"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:33.009919"], ["id", 4043]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4043], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 19:00:33.027531"], ["updated_at", "2018-12-05 19:00:33.027531"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:00:33.031200"], ["updated_at", "2018-12-05 19:00:33.031200"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4043], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$d2QMtV2tLr75elFPe0uY/.20gM7M3y9FsDhRDs9dAntBxzj4e0o1a"], ["created_at", "2018-12-05 19:00:33.069444"], ["updated_at", "2018-12-05 19:00:33.069444"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:33.093735"], ["last_sign_in_at", "2018-12-05 19:00:33.093735"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:33.094876"], ["id", 4044]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4044], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 19:00:33.113165"], ["updated_at", "2018-12-05 19:00:33.113165"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:00:33.116397"], ["updated_at", "2018-12-05 19:00:33.116397"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4044], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$SYXlg.wR4YYrFgkNtBnAOu3JEUwqbunaZnv/Q.phYAjcuGOLvTPWC"], ["created_at", "2018-12-05 19:00:33.155146"], ["updated_at", "2018-12-05 19:00:33.155146"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.1ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:33.180340"], ["last_sign_in_at", "2018-12-05 19:00:33.180340"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:33.181325"], ["id", 4045]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4045], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 19:00:33.199427"], ["updated_at", "2018-12-05 19:00:33.199427"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:00:33.202614"], ["updated_at", "2018-12-05 19:00:33.202614"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.5ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4045], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4045], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4045], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4045], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4045], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.8ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-06", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (2.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4045], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-06' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 32ms (Views: 6.2ms | ActiveRecord: 4.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$dVdZwgR8jqHw5ZTY4HNL8uVyAHcx2exmBs2yQEejOLXVBmsvwbBJ."], ["created_at", "2018-12-05 19:00:33.311583"], ["updated_at", "2018-12-05 19:00:33.311583"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:33.349232"], ["last_sign_in_at", "2018-12-05 19:00:33.349232"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:33.350194"], ["id", 4046]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4046], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (2.5ms)
Rendered users/registrations/new.html.erb within layouts/application (5.2ms)

Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$9fTcj9Xv09nYTGx.4URJCuVKjXw7QY4blkJp3j0FVA0i1xfNY7mSa"], ["created_at", "2018-12-05 19:00:33.430686"], ["updated_at", "2018-12-05 19:00:33.430686"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:00:33.433735"], ["last_sign_in_at", "2018-12-05 19:00:33.433735"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:00:33.434657"], ["id", 4047]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 14ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4047], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (1.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$abtz8pfT4T5hRG28S38mReJKo6NT8CbV6rjCqh9u/aMzT1bj.mT0q"], ["created_at", "2018-12-05 19:00:33.463026"], ["updated_at", "2018-12-05 19:00:33.463026"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.1ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.5ms)
Rendered users/sessions/new.html.erb within layouts/application (4.5ms)

Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:33.504788"], ["last_sign_in_at", "2018-12-05 19:00:33.504788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:33.505790"], ["id", 4048]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4048], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.7ms) Started GET “/users/4048/edit” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"4048"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4048], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 13ms (Views: 10.0ms | ActiveRecord: 0.9ms) Started PUT “/users/4048” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"4048"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4048], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4048], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 4048], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-05 19:00:33.575076"], ["id", 4048]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4048], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms)

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$Rg986alsau2WtbYjlF9kkOcmGeqQ6hO5tNWDrY/XHIT/yXQc9nwXq"], ["created_at", "2018-12-05 19:00:33.612804"], ["updated_at", "2018-12-05 19:00:33.612804"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:33.638244"], ["last_sign_in_at", "2018-12-05 19:00:33.638244"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:33.639180"], ["id", 4049]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4049], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.9ms)

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 19:00:33.656761"], ["updated_at", "2018-12-05 19:00:33.656761"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by RoomsController#index as HTML

User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4049], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 1.6ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4049], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 2.1ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4049], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4049], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4049], ["room_id", 1], ["created_at", "2018-12-05 19:00:33.719885"], ["updated_at", "2018-12-05 19:00:33.719885"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4049], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$rEhHOzRmUeZT1HubdH5VFOnLmqA4DCknNf1WqaRpeppwKnK24uFui"], ["created_at", "2018-12-05 19:00:33.756335"], ["updated_at", "2018-12-05 19:00:33.756335"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:00:33.781394"], ["last_sign_in_at", "2018-12-05 19:00:33.781394"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:00:33.782347"], ["id", 4050]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4050], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 19:00:33.799781"], ["updated_at", "2018-12-05 19:00:33.799781"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by RoomsController#index as HTML

User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4050], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 1.7ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4050], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 12ms (Views: 8.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4050], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4050], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4050], ["room_id", 1], ["created_at", "2018-12-05 19:00:33.858204"], ["updated_at", "2018-12-05 19:00:33.858204"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4050], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$llvofTQc8Lyx1hHm9hZAROdK7UCJ925SbKRwlDe8u2HolDSzBe2Sa"], ["created_at", "2018-12-05 19:00:33.884917"], ["updated_at", "2018-12-05 19:00:33.884917"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.0ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.7ms)
Rendered users/sessions/new.html.erb within layouts/application (4.3ms)

Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (1.5ms)
Rendered password_resets/new.html.erb within layouts/application (4.4ms)

Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.6ms)
Rendered password_resets/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.5ms)

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$RqBDOa3..FZlz4uT2kD6IOTtCdLI9p1wcMIEobwpGcjPo9Bd6Aw.K"], ["updated_at", "2018-12-05 19:00:33.956430"], ["id", 4051]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 17:00:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$L/BdFCRXCun61huPHaVMMumKxMD7uF1.vvOwBIlVGh7A4BrLJusc2"], ["created_at", "2018-12-05 19:03:10.619300"], ["updated_at", "2018-12-05 19:03:10.619300"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:10 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (17.9ms)
Rendered users/sessions/new.html.erb within layouts/application (271.3ms)

Completed 200 OK in 291ms (Views: 279.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:10 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:10.967047"], ["last_sign_in_at", "2018-12-05 19:03:10.967047"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:10.968283"], ["id", 4052]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 47ms (ActiveRecord: 3.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4052], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.0ms)
Rendered layouts/_header-admin.html.erb (2.2ms)

Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4052], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.9ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by RoomsController#new as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4052], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.4ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 40ms (Views: 12.8ms | ActiveRecord: 6.7ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4052], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4052], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.4ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 1.0ms)

 (0.6ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$qYsOgbdhfUgvJHgr9WLgauWB97xaPfQ5rHMHtSmMdMiiJ0izB0bYm"], ["created_at", "2018-12-05 19:03:11.129905"], ["updated_at", "2018-12-05 19:03:11.129905"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.3ms)
Rendered users/sessions/new.html.erb within layouts/application (4.6ms)

Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:11.161290"], ["last_sign_in_at", "2018-12-05 19:03:11.161290"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:11.162385"], ["id", 4053]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4053], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.2ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4053], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.5ms)
Rendered layouts/_header-admin.html.erb (2.4ms)

Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 0.9ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by RoomsController#new as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4053], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (5.5ms)
Rendered layouts/_header-admin.html.erb (2.5ms)

Completed 200 OK in 16ms (Views: 12.2ms | ActiveRecord: 0.9ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4053], ["LIMIT", 1]]
 (0.8ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4053], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.9ms)
Rendered layouts/_header-admin.html.erb (3.1ms)

Completed 200 OK in 14ms (Views: 11.2ms | ActiveRecord: 1.0ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (2.3ms)

Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$x9UEXTRj/zAtYJpZG0B2auMyttjkkdEl0BH5vWyy7mhZI38qid8z."], ["created_at", "2018-12-05 19:03:11.321779"], ["updated_at", "2018-12-05 19:03:11.321779"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (3.5ms)
Rendered users/sessions/new.html.erb within layouts/application (8.1ms)

Completed 200 OK in 16ms (Views: 12.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.5ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:11.370383"], ["last_sign_in_at", "2018-12-05 19:03:11.370383"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:11.372854"], ["id", 4054]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4054], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.1ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 13ms (Views: 10.0ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.6ms)

Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)

 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$zuYOJ0gD3SX0/m.UnrUfM.sQ/.oUl24vc9OGUer9qUUyrXorMyMuK"], ["created_at", "2018-12-05 19:03:11.426258"], ["updated_at", "2018-12-05 19:03:11.426258"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.3ms)
Rendered users/sessions/new.html.erb within layouts/application (5.8ms)

Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 7ms (ActiveRecord: 1.0ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (25.7ms)

Completed 200 OK in 32ms (Views: 28.8ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ZYGsFdogKg7TnVrut1blw.bYqbTTKxB9Iw7qr3c76IWzZrWOzmKo2"], ["created_at", "2018-12-05 19:03:11.517228"], ["updated_at", "2018-12-05 19:03:11.517228"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:11.542887"], ["last_sign_in_at", "2018-12-05 19:03:11.542887"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:11.543900"], ["id", 4056]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4056], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:03:11.566492"], ["updated_at", "2018-12-05 19:03:11.566492"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4056], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.8ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 12ms (Views: 7.2ms | ActiveRecord: 1.7ms) Started GET “/appointments/3302” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3302"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3302], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3302')
Rendered appointments/show.html.erb within layouts/application (12.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4056], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 33ms (Views: 16.1ms | ActiveRecord: 5.5ms) Started POST “/appointments.3302” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4056], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3302], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4056], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4056], ["room_id", 3302], ["created_at", "2018-12-05 19:03:11.687400"], ["updated_at", "2018-12-05 19:03:11.687400"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 41ms (ActiveRecord: 7.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4056], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$PWrY0mU4IFpcXioCDgYymeWLGOK1yTZclfUpKS2BBlzcS9kssxehC"], ["created_at", "2018-12-05 19:03:11.720097"], ["updated_at", "2018-12-05 19:03:11.720097"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:11.745219"], ["last_sign_in_at", "2018-12-05 19:03:11.745219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:11.746195"], ["id", 4057]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4057], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:03:11.766777"], ["updated_at", "2018-12-05 19:03:11.766777"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.8ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3303], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4057], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4057], ["room_id", 3303], ["created_at", "2018-12-05 19:03:11.778844"], ["updated_at", "2018-12-05 19:03:11.778844"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4057], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 1.4ms) Started GET “/appointments/3303” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3303"}
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3303], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3303')
Rendered appointments/show.html.erb within layouts/application (7.9ms)
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4057], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 17ms (Views: 13.0ms | ActiveRecord: 2.3ms) Started POST “/appointments.3303” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4057], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3303], ["LIMIT", 1]]
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4057], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4057], ["room_id", 3303], ["created_at", "2018-12-05 19:03:11.859983"], ["updated_at", "2018-12-05 19:03:11.859983"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 23ms (ActiveRecord: 4.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4057], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$rZuYV1KJED68v70MSRn7vu56pWUuHAbGno0YrP5Nvv45Keh/UhLBi"], ["created_at", "2018-12-05 19:03:11.887468"], ["updated_at", "2018-12-05 19:03:11.887468"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.0ms)

Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:11.911005"], ["last_sign_in_at", "2018-12-05 19:03:11.911005"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:11.912052"], ["id", 4058]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4058], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:03:11.930856"], ["updated_at", "2018-12-05 19:03:11.930856"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3304], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4058], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4058], ["room_id", 3304], ["created_at", "2018-12-05 19:03:11.941476"], ["updated_at", "2018-12-05 19:03:11.941476"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4058], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4058]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 19ms (Views: 8.2ms | ActiveRecord: 1.2ms) Started DELETE “/appointments/2999” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"2999"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 2999], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 2999]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:03:11 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4058], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4058]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$movF5lS97.LTQ/8bUWuvZO80DFlF/g31yH7vo7F6Pr.eICSun/hIu"], ["created_at", "2018-12-05 19:03:12.006417"], ["updated_at", "2018-12-05 19:03:12.006417"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:12.032669"], ["last_sign_in_at", "2018-12-05 19:03:12.032669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:12.033726"], ["id", 4059]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4059], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 19:03:12.050959"], ["updated_at", "2018-12-05 19:03:12.050959"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3305], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4059], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 4059], ["room_id", 3305], ["created_at", "2018-12-05 19:03:12.061920"], ["updated_at", "2018-12-05 19:03:12.061920"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4059], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4059]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 1.3ms) Started DELETE “/appointments/3000” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3000"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3000], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3000]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.7ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4059], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4059]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Z8I3m4gax8i70OEeGp5LMu6RM.G8tLcOdZogsdtAhjM.Ad012khju"], ["created_at", "2018-12-05 19:03:12.115845"], ["updated_at", "2018-12-05 19:03:12.115845"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:12.142670"], ["last_sign_in_at", "2018-12-05 19:03:12.142670"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:12.143583"], ["id", 4060]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4060], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-05 19:03:12.160325"], ["updated_at", "2018-12-05 19:03:12.160325"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-05 19:03:12.163435"], ["updated_at", "2018-12-05 19:03:12.163435"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4060], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.1ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4060], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 1.4ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (1.4ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4060], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 1.7ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$BI2K9RpcndBR17t4SrsuMu2ftNXQpUNm9KzjxxES/PmrrBDhq361u"], ["created_at", "2018-12-05 19:03:12.227016"], ["updated_at", "2018-12-05 19:03:12.227016"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:12.252085"], ["last_sign_in_at", "2018-12-05 19:03:12.252085"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:12.253169"], ["id", 4061]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4061], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.8ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4061], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 1.5ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$cPvbPM8a6iKS8UiS5Iw5xeSczXMM3HcWjkh7EA7.ODHRzrPPvSOd6"], ["created_at", "2018-12-05 19:03:12.336755"], ["updated_at", "2018-12-05 19:03:12.336755"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.0ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:12.360800"], ["last_sign_in_at", "2018-12-05 19:03:12.360800"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:12.361749"], ["id", 4062]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4062], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:03:12.381601"], ["updated_at", "2018-12-05 19:03:12.381601"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3308], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4062], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4062], ["room_id", 3308], ["created_at", "2018-12-05 19:03:12.391340"], ["updated_at", "2018-12-05 19:03:12.391340"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4062], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 1.5ms) Started GET “/appointments/3308” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3308"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3308], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3308')
Rendered appointments/show.html.erb within layouts/application (7.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4062], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 16ms (Views: 12.4ms | ActiveRecord: 2.1ms) Started POST “/appointments.3308” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4062], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3308], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4062], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4062], ["room_id", 3308], ["created_at", "2018-12-05 19:03:12.456097"], ["updated_at", "2018-12-05 19:03:12.456097"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4062], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$Zu7O6wjhnKhSF/2PC3MRv.WEVQKH4bq.y3YAX4Y3s6UlgeoyS0JZm"], ["created_at", "2018-12-05 19:03:12.483831"], ["updated_at", "2018-12-05 19:03:12.483831"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:12.509100"], ["last_sign_in_at", "2018-12-05 19:03:12.509100"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:12.510119"], ["id", 4063]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4063], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:03:12.528475"], ["updated_at", "2018-12-05 19:03:12.528475"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3309], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4063], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4063], ["room_id", 3309], ["created_at", "2018-12-05 19:03:12.539832"], ["updated_at", "2018-12-05 19:03:12.539832"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4063], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4063]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$OrKIjjVHvgHaAh.nyahqfuRdySpu8HuDV0O/1UVBLWd4zWyIMOC8a"], ["created_at", "2018-12-05 19:03:12.577994"], ["updated_at", "2018-12-05 19:03:12.577994"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:12.602229"], ["last_sign_in_at", "2018-12-05 19:03:12.602229"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:12.603251"], ["id", 4064]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4064], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 19:03:12.620953"], ["updated_at", "2018-12-05 19:03:12.620953"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3310], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4064], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 4064], ["room_id", 3310], ["created_at", "2018-12-05 19:03:12.630846"], ["updated_at", "2018-12-05 19:03:12.630846"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4064], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4064]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 1.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Gc7jcZfRgSekKeIAWOmLHeHVpqTwC5QAUvYqtxt8x3wIHACt86/uu"], ["created_at", "2018-12-05 19:03:12.665277"], ["updated_at", "2018-12-05 19:03:12.665277"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:12.691519"], ["last_sign_in_at", "2018-12-05 19:03:12.691519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:12.692716"], ["id", 4065]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4065], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$CDSBPcAsLCVCmCG11Uzq5.x5BQay0dhtHpjLrw9tpJ.vjuF1/lAZy"], ["created_at", "2018-12-05 19:03:12.728024"], ["updated_at", "2018-12-05 19:03:12.728024"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (4.0ms)

Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:12.755724"], ["last_sign_in_at", "2018-12-05 19:03:12.755724"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:12.756852"], ["id", 4066]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 22ms (ActiveRecord: 2.6ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4066], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 19:03:12.785350"], ["updated_at", "2018-12-05 19:03:12.785350"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:03:12.788650"], ["updated_at", "2018-12-05 19:03:12.788650"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4066], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 1.3ms) Started GET “/appointments/3311” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3311"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3311], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3311')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4066], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 1.8ms) Started POST “/appointments.3311” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4066], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3311], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4066], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4066], ["room_id", 3311], ["created_at", "2018-12-05 19:03:12.851065"], ["updated_at", "2018-12-05 19:03:12.851065"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4066], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$GHxdDXJK5YbecAhI6ax4Gev.953vr6Gr6udRJzMWPcKxDbGuiT0oC"], ["created_at", "2018-12-05 19:03:12.879698"], ["updated_at", "2018-12-05 19:03:12.879698"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:12.905153"], ["last_sign_in_at", "2018-12-05 19:03:12.905153"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:12.906215"], ["id", 4067]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4067], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 19:03:12.923864"], ["updated_at", "2018-12-05 19:03:12.923864"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:03:12.926991"], ["updated_at", "2018-12-05 19:03:12.926991"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4067], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 1.4ms) Started GET “/appointments/3313” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3313"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3313], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3313')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4067], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 1.8ms) Started POST “/appointments.3313” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4067], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:12 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4067], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$dUTPm0IRs5VzVJydj08CReg1Fb7m.liy5QAk.f2Zjgw5cRwTUNi1K"], ["created_at", "2018-12-05 19:03:13.008189"], ["updated_at", "2018-12-05 19:03:13.008189"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:13.033401"], ["last_sign_in_at", "2018-12-05 19:03:13.033401"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:13.034342"], ["id", 4068]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4068], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-05 19:03:13.051196"], ["updated_at", "2018-12-05 19:03:13.051196"], ["tipo_sala", "tipoTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4068], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.8ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4068], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 1.5ms) Started DELETE “/rooms/3315” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3315"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4068], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3315], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3315]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4068], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$e1d9MrUIEDYst8t/zl2IV.jqyqQ9CojeIvnr5TgmF5h3TKGY0Htc."], ["created_at", "2018-12-05 19:03:13.120270"], ["updated_at", "2018-12-05 19:03:13.120270"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-05 19:03:13.124124"], ["updated_at", "2018-12-05 19:03:13.124124"], ["tipo_sala", "tipoTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:13.159030"], ["last_sign_in_at", "2018-12-05 19:03:13.159030"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:13.160057"], ["id", 4069]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4069], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.7ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4069], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 1.5ms) Started GET “/rooms/3316/edit” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3316"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4069], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3316], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 1.2ms) Started PATCH “/rooms/3316” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"3316"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4069], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3316], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 14ms (Views: 7.5ms | ActiveRecord: 1.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$tJtgBp/4KS3/spCdJqC.GOA.KYmVffOjA0j8tD9gOczw.Wh4OxAQe"], ["created_at", "2018-12-05 19:03:13.262383"], ["updated_at", "2018-12-05 19:03:13.262383"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$dnjAjfuOD4Ve79nqbRE/WOMuOd7i5caR4.U.jIZU6VY1k80/tfTv6"], ["created_at", "2018-12-05 19:03:13.282159"], ["updated_at", "2018-12-05 19:03:13.282159"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:13.307152"], ["last_sign_in_at", "2018-12-05 19:03:13.307152"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:13.308122"], ["id", 4071]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4071], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4071], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 1.5ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-05 19:03:13.337314"], ["updated_at", "2018-12-05 19:03:13.337314"], ["tipo_sala", "Coodernação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-05 19:03:13.340482"], ["updated_at", "2018-12-05 19:03:13.340482"], ["tipo_sala", "Predio CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-05 19:03:13.343436"], ["updated_at", "2018-12-05 19:03:13.343436"], ["tipo_sala", "Salas de Reunião"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$M.xjV8lhTjRVXkoZIquosOs2ZUNJKyP6QXPi.ODfEP1sUNZG1maqO"], ["created_at", "2018-12-05 19:03:13.379164"], ["updated_at", "2018-12-05 19:03:13.379164"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:13.404949"], ["last_sign_in_at", "2018-12-05 19:03:13.404949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:13.405983"], ["id", 4072]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4072], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 19:03:13.424443"], ["updated_at", "2018-12-05 19:03:13.424443"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:03:13.427625"], ["updated_at", "2018-12-05 19:03:13.427625"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4072], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$onmA8xLZKGZtiK3AECr47./IfK7DV.MfHViiOh8pvkBfxQhlxYvfa"], ["created_at", "2018-12-05 19:03:13.464690"], ["updated_at", "2018-12-05 19:03:13.464690"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:13.488334"], ["last_sign_in_at", "2018-12-05 19:03:13.488334"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:13.489313"], ["id", 4073]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4073], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 19:03:13.507600"], ["updated_at", "2018-12-05 19:03:13.507600"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:03:13.510849"], ["updated_at", "2018-12-05 19:03:13.510849"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4073], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$gayTYyll0Wzrqj4GbtllZeKyj.zM6TD0FDrQk2X5lryFentvMkxD."], ["created_at", "2018-12-05 19:03:13.546857"], ["updated_at", "2018-12-05 19:03:13.546857"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:13.570634"], ["last_sign_in_at", "2018-12-05 19:03:13.570634"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:13.571443"], ["id", 4074]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4074], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 19:03:13.588292"], ["updated_at", "2018-12-05 19:03:13.588292"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 19:03:13.591549"], ["updated_at", "2018-12-05 19:03:13.591549"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4074], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.6ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4074], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.5ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4074], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4074], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4074], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.7ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-06", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4074], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-06' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 22ms (Views: 6.4ms | ActiveRecord: 2.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$FI.K2C6SibKXaiERTafhfuicveWmgYIqw4UJst6QIjYaXCvDejegW"], ["created_at", "2018-12-05 19:03:13.701180"], ["updated_at", "2018-12-05 19:03:13.701180"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:13.736937"], ["last_sign_in_at", "2018-12-05 19:03:13.736937"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:13.737820"], ["id", 4075]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4075], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.8ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (2.4ms)
Rendered users/registrations/new.html.erb within layouts/application (4.9ms)

Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$NHCLgJcxsA0h48YfJ/.cXeBGoRtf5YzZklzaZpc49NmnskvEfNkKK"], ["created_at", "2018-12-05 19:03:13.817355"], ["updated_at", "2018-12-05 19:03:13.817355"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:13.820014"], ["last_sign_in_at", "2018-12-05 19:03:13.820014"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:13.820644"], ["id", 4076]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 14ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4076], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$gNxqCEgaT4LD46lBw6vmLeY6Lsl4PyjdSIjw.dDWgV1tAoIEuZN66"], ["created_at", "2018-12-05 19:03:13.847827"], ["updated_at", "2018-12-05 19:03:13.847827"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:13.883161"], ["last_sign_in_at", "2018-12-05 19:03:13.883161"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:13.884111"], ["id", 4077]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4077], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.9ms) Started GET “/users/4077/edit” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"4077"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4077], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 1.0ms) Started PUT “/users/4077” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"4077"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4077], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4077], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 4077], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-05 19:03:13.954920"], ["id", 4077]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 16ms (ActiveRecord: 2.6ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4077], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.9ms)

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$BPCAAkgFlhJjqVxzRCWR1.zuXK/gP8NhvdsLrJW19Ksh1KYvIKiOK"], ["created_at", "2018-12-05 19:03:13.989249"], ["updated_at", "2018-12-05 19:03:13.989249"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:14.015129"], ["last_sign_in_at", "2018-12-05 19:03:14.015129"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:14.016148"], ["id", 4078]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4078], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 19:03:14.033980"], ["updated_at", "2018-12-05 19:03:14.033980"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4078], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 1.4ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4078], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 1.9ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4078], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4078], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4078], ["room_id", 1], ["created_at", "2018-12-05 19:03:14.093870"], ["updated_at", "2018-12-05 19:03:14.093870"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4078], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$xrVvGBsqLTdhhF6MYDmM9OD7MKtuDdHxZju7HoSvsugPn0jwrs5UK"], ["created_at", "2018-12-05 19:03:14.120631"], ["updated_at", "2018-12-05 19:03:14.120631"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.3ms)
Rendered users/sessions/new.html.erb within layouts/application (4.6ms)

Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 19:03:14.146826"], ["last_sign_in_at", "2018-12-05 19:03:14.146826"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 19:03:14.147823"], ["id", 4079]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4079], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 19:03:14.165254"], ["updated_at", "2018-12-05 19:03:14.165254"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4079], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 1.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4079], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 2.0ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4079], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4079], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4079], ["room_id", 1], ["created_at", "2018-12-05 19:03:14.223182"], ["updated_at", "2018-12-05 19:03:14.223182"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4079], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.6ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$mZ1HaM8lzPr1t3KSkz0eNebqQIy41rOU03F9KjaORU7zYwG1UvYPa"], ["created_at", "2018-12-05 19:03:14.250354"], ["updated_at", "2018-12-05 19:03:14.250354"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (1.3ms)
Rendered password_resets/new.html.erb within layouts/application (3.9ms)

Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.7ms)
Rendered password_resets/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.6ms)

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$H02S5pQfTJhrtQFFH7mDVerBbfWB6gRp7pwCOBRNd3u0mio8BEh2G"], ["updated_at", "2018-12-05 19:03:14.316681"], ["id", 4080]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 17:03:14 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.3ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mvScQAuU8Rmmd.deQko/PeoQtqS1sjG3I09z4D3CaiTf9deAPxAQa"], ["created_at", "2018-12-05 19:03:26.294238"], ["updated_at", "2018-12-05 19:03:26.294238"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FyEOYdBhyVlRuq7sxuo/3e4kyi.rit7pcxgrLNVm2NTL5eKz41.j6"], ["created_at", "2018-12-05 19:03:26.302931"], ["updated_at", "2018-12-05 19:03:26.302931"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:26.340353"], ["updated_at", "2018-12-05 19:03:26.340353"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3326], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4082], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4082], ["room_id", 3326], ["created_at", "2018-12-05 19:03:26.387593"], ["updated_at", "2018-12-05 19:03:26.387593"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"3008"}
Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3008], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3326], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4082], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.6ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.6ms)

UserMailer#status_notification: processed outbound mail in 344.8ms Sent mail to 123@123.com (11.4ms) Date: Wed, 05 Dec 2018 17:03:26 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0820febac09_3793f96f14267f6@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0820feb8db8_3793f96f1426626";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0820feb8db8_3793f96f1426626 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c0820feb8db8_3793f96f1426626 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c0820feb8db8_3793f96f1426626–

Completed 302 Found in 369ms (ActiveRecord: 2.6ms)

 (0.6ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FP2GIa2qU6yntEQWV5F4LONvlqPlV0e3wb/CiS/i5hGW4farydQIW"], ["created_at", "2018-12-05 19:03:26.780975"], ["updated_at", "2018-12-05 19:03:26.780975"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$O3Ld.oQXIbloadzkaPVMy.LA1hwPIvsvuwSJhvEGDhB5ZvjcK0406"], ["created_at", "2018-12-05 19:03:26.789347"], ["updated_at", "2018-12-05 19:03:26.789347"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:26.793400"], ["updated_at", "2018-12-05 19:03:26.793400"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3327], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4084], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4084], ["room_id", 3327], ["created_at", "2018-12-05 19:03:26.802374"], ["updated_at", "2018-12-05 19:03:26.802374"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"3009"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3009], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3327], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4084], ["LIMIT", 1]]
SQL (0.8ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-05 19:03:26.814608"], ["id", 3009]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.6ms Sent mail to 123@123.com (6.1ms) Date: Wed, 05 Dec 2018 17:03:26 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0820fec9833_3793f96f142697c@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0820fec88c8_3793f96f1426874";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0820fec88c8_3793f96f1426874 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c0820fec88c8_3793f96f1426874 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c0820fec88c8_3793f96f1426874–

Completed 302 Found in 23ms (ActiveRecord: 3.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eCqcOUosXr.nI66zATwZnehjo.1gniqzE7iShQ1VIZpEtuu3th4tW"], ["created_at", "2018-12-05 19:03:26.841700"], ["updated_at", "2018-12-05 19:03:26.841700"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iKa9gUz5srCn1a.VoG3jTeHOjKedjXMrKBTsdxmljR.ueUg9q67r6"], ["created_at", "2018-12-05 19:03:26.849903"], ["updated_at", "2018-12-05 19:03:26.849903"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:26.853508"], ["updated_at", "2018-12-05 19:03:26.853508"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3328], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4086], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4086], ["room_id", 3328], ["created_at", "2018-12-05 19:03:26.860756"], ["updated_at", "2018-12-05 19:03:26.860756"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2Y7s.CAY9nXtR7ntzdObE.2ClO.akKzybTwmZfux0.co7CisSXDRi"], ["created_at", "2018-12-05 19:03:26.876452"], ["updated_at", "2018-12-05 19:03:26.876452"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yXTbah8tmql6eJ5y54KKY.cZjzFmj1aDcM.Ej85K37Tjj1qn3mzWi"], ["created_at", "2018-12-05 19:03:26.884252"], ["updated_at", "2018-12-05 19:03:26.884252"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:26.888000"], ["updated_at", "2018-12-05 19:03:26.888000"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3329], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4088], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4088], ["room_id", 3329], ["created_at", "2018-12-05 19:03:26.895547"], ["updated_at", "2018-12-05 19:03:26.895547"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3011], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$bjGp8zlJ2UgkuzNlOlOfbu635KnbYbf4KdWoOhs1CB3s5mwsvnbaO"], ["created_at", "2018-12-05 19:03:26.909866"], ["updated_at", "2018-12-05 19:03:26.909866"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"4089"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "Dz0KQgAHarZ7kL7f9MWVKw"], ["updated_at", "2018-12-05 19:03:26.919212"], ["id", 4089]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-05 19:03:26.923186"], ["reset_sent_at", "2018-12-05 19:03:26.922457"], ["id", 4089]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.3ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.8ms)

UserMailer#password_reset: processed outbound mail in 14.2ms Sent mail to teste@unb.com.br (6.9ms) Date: Wed, 05 Dec 2018 17:03:26 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c0820fee652d_3793f96f1427278@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0820fee4e70_3793f96f142711f";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0820fee4e70_3793f96f142711f Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/Dz0KQgAHarZ7kL7f9MWVKw/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c0820fee4e70_3793f96f142711f Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/Dz0KQgAHarZ7kL7f9MWVKw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c0820fee4e70_3793f96f142711f–

Redirected to test.host/login Completed 302 Found in 33ms (ActiveRecord: 3.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$Y3cjFxKAhwKXG7tsQH3Co.IMv529GSCpbRaIce2Ot4I4sNQhlTOoi"], ["created_at", "2018-12-05 19:03:26.956441"], ["updated_at", "2018-12-05 19:03:26.956441"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.0ms

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$4xGXN.SyUZtqdBGUOECyvOvPzTKTVxLeF.dzWTzU3cTTKqEqPkXDy"], ["created_at", "2018-12-05 19:03:26.975566"], ["updated_at", "2018-12-05 19:03:26.975566"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4091"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$6qVqJ6rO8n2EZVmCD7n91u2K/wgEESndHBs/jc1GRG.7Pg8xpFZE."], ["updated_at", "2018-12-05 19:03:26.985767"], ["id", 4091]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 2.1ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$92/vvtPsKBaVUem5Fo4Wa.hPPALK5pulnqdjffXZefe3YMWEGdNOG"], ["created_at", "2018-12-05 19:03:26.999259"], ["updated_at", "2018-12-05 19:03:26.999259"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"4092"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$TK6pWSBOE7HIJjZbpXxrDOjbvftP4VJTUotkvxQ3fF3hMd0E742Vm"], ["created_at", "2018-12-05 19:03:27.019060"], ["updated_at", "2018-12-05 19:03:27.019060"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4093"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$MjovJhd129nnt9J6AUob0em4MLJ4kn70joWf3BS6bsZuANPKSMcSa"], ["created_at", "2018-12-05 19:03:27.054351"], ["updated_at", "2018-12-05 19:03:27.054351"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4094"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 10ms (Views: 1.0ms | ActiveRecord: 1.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$mXk7jy5dxFp6DKdau9g/T.jralRBaXnGE5CYsmutPFZDKaQq1Xs8G"], ["created_at", "2018-12-05 19:03:27.078717"], ["updated_at", "2018-12-05 19:03:27.078717"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4095"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I6GuuGjfxXqLvJWcgEAs.OS3m9LTYsywbbm3FNLALxfmob7PH3NlO"], ["created_at", "2018-12-05 19:03:27.097626"], ["updated_at", "2018-12-05 19:03:27.097626"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.9ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4O7kekxK57YFlCiXENoWF.1Mbys9yM9ZcAtQoyN1eNBWQNaDintNa"], ["created_at", "2018-12-05 19:03:27.114651"], ["updated_at", "2018-12-05 19:03:27.114651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.6ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vLqmZ26PV1MAvlHFqAJqZOBVzx9V39mdDWYEe4nq5Oh36efw1otmq"], ["created_at", "2018-12-05 19:03:27.132384"], ["updated_at", "2018-12-05 19:03:27.132384"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.136275"], ["updated_at", "2018-12-05 19:03:27.136275"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3330], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4098], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4098], ["room_id", 3330], ["created_at", "2018-12-05 19:03:27.143728"], ["updated_at", "2018-12-05 19:03:27.143728"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.3ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rk8hNLEbFFEPe0D.LDCGU.vWzS7f3v9pAK4JPkCsv3JQRtMVJcdbO"], ["created_at", "2018-12-05 19:03:27.160221"], ["updated_at", "2018-12-05 19:03:27.160221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.164669"], ["updated_at", "2018-12-05 19:03:27.164669"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3331], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4099], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4099], ["room_id", 3331], ["created_at", "2018-12-05 19:03:27.175021"], ["updated_at", "2018-12-05 19:03:27.175021"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ChA98F8tPv1nguBijzywNucQuydZy1DfsGeiu2zoFqK4AbJe2Fpse"], ["created_at", "2018-12-05 19:03:27.234889"], ["updated_at", "2018-12-05 19:03:27.234889"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.239094"], ["updated_at", "2018-12-05 19:03:27.239094"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:03:27 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:27.251752"], ["last_sign_in_at", "2018-12-05 19:03:27.251752"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:27.252859"], ["id", 4100]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3332"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3332], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4100], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4100], ["room_id", 3332], ["created_at", "2018-12-05 19:03:27.270996"], ["updated_at", "2018-12-05 19:03:27.270996"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.6ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3332], ["LIMIT", 1]]
 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XRFBXxUbpl4w7CXkFv4y9OCwRb8yQu4z1i9./T.mCYNRbBriVjW0."], ["created_at", "2018-12-05 19:03:27.287807"], ["updated_at", "2018-12-05 19:03:27.287807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.292688"], ["updated_at", "2018-12-05 19:03:27.292688"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:03:27 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:27.297655"], ["last_sign_in_at", "2018-12-05 19:03:27.297655"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:27.298780"], ["id", 4101]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3333"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3333], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4101], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4101], ["room_id", 3333], ["created_at", "2018-12-05 19:03:27.310819"], ["updated_at", "2018-12-05 19:03:27.310819"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$C/qm/r3XrPtJ2B9f3xyOGeej42wq5QtizxxaMTVyvaOy.dc58Uu3y"], ["created_at", "2018-12-05 19:03:27.324552"], ["updated_at", "2018-12-05 19:03:27.324552"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.329030"], ["updated_at", "2018-12-05 19:03:27.329030"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:03:27 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:27.336271"], ["last_sign_in_at", "2018-12-05 19:03:27.336271"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:27.337743"], ["id", 4102]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3334", "user_id"=>"4102"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3334], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4102], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4102], ["room_id", 3334], ["created_at", "2018-12-05 19:03:27.350269"], ["updated_at", "2018-12-05 19:03:27.350269"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.5ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:03:27 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3334", "user_id"=>"4102"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4102], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3334], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4102], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4102], ["room_id", 3334], ["created_at", "2018-12-05 19:03:27.366986"], ["updated_at", "2018-12-05 19:03:27.366986"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pK/IlH6.70ekvrQbTpRNuO/Czr0N64IEK4CnyOZ/8j7hpitkEpSGK"], ["created_at", "2018-12-05 19:03:27.379396"], ["updated_at", "2018-12-05 19:03:27.379396"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.383600"], ["updated_at", "2018-12-05 19:03:27.383600"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:03:27 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:27.389469"], ["last_sign_in_at", "2018-12-05 19:03:27.389469"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:27.390574"], ["id", 4103]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3335", "user_id"=>"4103"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3335], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4103], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4103], ["room_id", 3335], ["created_at", "2018-12-05 19:03:27.402603"], ["updated_at", "2018-12-05 19:03:27.402603"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:03:27 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3335", "user_id"=>"4103"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4103], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3335], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4103], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4103], ["room_id", 3335], ["created_at", "2018-12-05 19:03:27.419012"], ["updated_at", "2018-12-05 19:03:27.419012"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.4ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3335], ["user_id", 4103], ["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uFsF0GjP4EjHwPLxI5npX.sWmO.j1sFQUfDdQAHJAFX.4m3XeQ8rK"], ["created_at", "2018-12-05 19:03:27.434539"], ["updated_at", "2018-12-05 19:03:27.434539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.438972"], ["updated_at", "2018-12-05 19:03:27.438972"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:03:27 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:27.444534"], ["last_sign_in_at", "2018-12-05 19:03:27.444534"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:27.445617"], ["id", 4104]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3336", "user_id"=>"4104"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3336], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4104], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4104], ["room_id", 3336], ["created_at", "2018-12-05 19:03:27.456788"], ["updated_at", "2018-12-05 19:03:27.456788"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.5ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:03:27 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3336", "user_id"=>"4104"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4104], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3336], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4104], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4104], ["room_id", 3336], ["created_at", "2018-12-05 19:03:27.474282"], ["updated_at", "2018-12-05 19:03:27.474282"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 3.8ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3336], ["user_id", 4104], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eWZwbpH.G0O0kNSo67C71.D2JImeS0N.twGCdh7ygJNUu.BAwf6JC"], ["created_at", "2018-12-05 19:03:27.488665"], ["updated_at", "2018-12-05 19:03:27.488665"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.493343"], ["updated_at", "2018-12-05 19:03:27.493343"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:03:27 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:27.498463"], ["last_sign_in_at", "2018-12-05 19:03:27.498463"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:27.499522"], ["id", 4105]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3337"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3337], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6mLvzupv37D7OR0Y1rPzrekYl4XI59NQLudQK3k5zXmBQmu5ZCXs."], ["created_at", "2018-12-05 19:03:27.517639"], ["updated_at", "2018-12-05 19:03:27.517639"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.522159"], ["updated_at", "2018-12-05 19:03:27.522159"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 17:03:27 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:27.527129"], ["last_sign_in_at", "2018-12-05 19:03:27.527129"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:27.528328"], ["id", 4106]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3338"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ut..cn60DWl/NEkty/0sper0hTRduSbrYFURT.PUHSY1sTZEJxO4C"], ["created_at", "2018-12-05 19:03:27.545403"], ["updated_at", "2018-12-05 19:03:27.545403"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.549763"], ["updated_at", "2018-12-05 19:03:27.549763"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3339], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4107], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4107], ["room_id", 3339], ["created_at", "2018-12-05 19:03:27.557980"], ["updated_at", "2018-12-05 19:03:27.557980"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3339” for 127.0.0.1 at 2018-12-05 17:03:27 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:27.562376"], ["last_sign_in_at", "2018-12-05 19:03:27.562376"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:27.563428"], ["id", 4107]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3339"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3339], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3339')
Rendered appointments/show.html.erb within layouts/application (13.4ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 214ms (Views: 209.4ms | ActiveRecord: 1.3ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZYuD.YOmbLmtd5wCLiwy.ufrm0eqQmQIj8pd2YOgoDx6P7B4Smqbi"], ["created_at", "2018-12-05 19:03:27.791748"], ["updated_at", "2018-12-05 19:03:27.791748"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.796501"], ["updated_at", "2018-12-05 19:03:27.796501"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3340], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4108], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4108], ["room_id", 3340], ["created_at", "2018-12-05 19:03:27.805235"], ["updated_at", "2018-12-05 19:03:27.805235"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3023/edit” for 127.0.0.1 at 2018-12-05 17:03:27 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:27.809808"], ["last_sign_in_at", "2018-12-05 19:03:27.809808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:27.810835"], ["id", 4108]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"3023"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3023], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$laINsvfi9rDhVyDyKtje4u9K0EdzSmJiTYresUxNi.uLaopnzPcxm"], ["created_at", "2018-12-05 19:03:27.838746"], ["updated_at", "2018-12-05 19:03:27.838746"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 17:03:27 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:27.843285"], ["last_sign_in_at", "2018-12-05 19:03:27.843285"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:27.844528"], ["id", 4109]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$j5grHJWjVv6PAqRlTz77eO2wd09L7U1FL/F.6uqbGqmBZ57LU4JfW"], ["created_at", "2018-12-05 19:03:27.870633"], ["updated_at", "2018-12-05 19:03:27.870633"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.875175"], ["updated_at", "2018-12-05 19:03:27.875175"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3341], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4110], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4110], ["room_id", 3341], ["created_at", "2018-12-05 19:03:27.884057"], ["updated_at", "2018-12-05 19:03:27.884057"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3341], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4110], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4110], ["room_id", 3341], ["created_at", "2018-12-05 19:03:27.892737"], ["updated_at", "2018-12-05 19:03:27.892737"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:03:27 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:27.897142"], ["last_sign_in_at", "2018-12-05 19:03:27.897142"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:27.898221"], ["id", 4110]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4110]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.0ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 20ms (Views: 10.7ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gP2i.13K5beD05B3Ohc3SubY.T.BhUeJFXcxIQVMScGp6YhZVDar2"], ["created_at", "2018-12-05 19:03:27.937153"], ["updated_at", "2018-12-05 19:03:27.937153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.942720"], ["updated_at", "2018-12-05 19:03:27.942720"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3342], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4111], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4111], ["room_id", 3342], ["created_at", "2018-12-05 19:03:27.951556"], ["updated_at", "2018-12-05 19:03:27.951556"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3342], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4111], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4111], ["room_id", 3342], ["created_at", "2018-12-05 19:03:27.960896"], ["updated_at", "2018-12-05 19:03:27.960896"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 17:03:27 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:27.965449"], ["last_sign_in_at", "2018-12-05 19:03:27.965449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:27.966541"], ["id", 4111]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4111]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gmRtcRtBXqzwM2.vFW/QZOqxjmW5wQF5MEavIsNq7jNhiJuJitmsG"], ["created_at", "2018-12-05 19:03:27.991014"], ["updated_at", "2018-12-05 19:03:27.991014"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:27.995229"], ["updated_at", "2018-12-05 19:03:27.995229"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3343], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4112], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4112], ["room_id", 3343], ["created_at", "2018-12-05 19:03:28.003415"], ["updated_at", "2018-12-05 19:03:28.003415"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/3028” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.007595"], ["last_sign_in_at", "2018-12-05 19:03:28.007595"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.008623"], ["id", 4112]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3028"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3028], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3028]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.TCXRNkShWzIj4JyIsG46OIE8m84/kopq5WVDYK9o9p4H3LqlTfwm"], ["created_at", "2018-12-05 19:03:28.030467"], ["updated_at", "2018-12-05 19:03:28.030467"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.034615"], ["updated_at", "2018-12-05 19:03:28.034615"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/mcD9vKt66AmPjrsLZ76r.pC7BIrZz7BiQMzCJxp6vYFQLlM4d5qS"], ["created_at", "2018-12-05 19:03:28.041320"], ["updated_at", "2018-12-05 19:03:28.041320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3344], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4114], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4114], ["room_id", 3344], ["created_at", "2018-12-05 19:03:28.048772"], ["updated_at", "2018-12-05 19:03:28.048772"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3029” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.053911"], ["last_sign_in_at", "2018-12-05 19:03:28.053911"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.054880"], ["id", 4113]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3029"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3029], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3344], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4114], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.5ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uV7HNTXK7TO5m0hLMDB3F.v6HN0OQbhaRtqgw2fEM4/uh6XVqZXku"], ["created_at", "2018-12-05 19:03:28.078189"], ["updated_at", "2018-12-05 19:03:28.078189"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.083089"], ["updated_at", "2018-12-05 19:03:28.083089"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nXCBrGFQ2.s7.h7Ckj6NieTq5AmFMNW2LmL..CteFwSRlP5E7dGxa"], ["created_at", "2018-12-05 19:03:28.090722"], ["updated_at", "2018-12-05 19:03:28.090722"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3345], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4116], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4116], ["room_id", 3345], ["created_at", "2018-12-05 19:03:28.099080"], ["updated_at", "2018-12-05 19:03:28.099080"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3030” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.104326"], ["last_sign_in_at", "2018-12-05 19:03:28.104326"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.105425"], ["id", 4115]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3030"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3030], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3345], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4116], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tFHD8cY12QzLEsjqPsv6kOgwZyiANp2.6P9KDl6ONmYr4csjb70Wq"], ["created_at", "2018-12-05 19:03:28.128090"], ["updated_at", "2018-12-05 19:03:28.128090"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.132942"], ["updated_at", "2018-12-05 19:03:28.132942"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Yhzd9kRW6CIqhhQSLI9i/uIOWibjFSVGoQEBsRa8LTE1Ha02swNR2"], ["created_at", "2018-12-05 19:03:28.140639"], ["updated_at", "2018-12-05 19:03:28.140639"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3346], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4118], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4118], ["room_id", 3346], ["created_at", "2018-12-05 19:03:28.150018"], ["updated_at", "2018-12-05 19:03:28.150018"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3031” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.155169"], ["last_sign_in_at", "2018-12-05 19:03:28.155169"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.156371"], ["id", 4117]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"3031"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3031], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3346], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4118], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-05 19:03:28.170492"], ["id", 3031]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (6.0ms) Date: Wed, 05 Dec 2018 17:03:28 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0821002c322_3793f96f142794a@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0821002b42d_3793f96f1427870";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0821002b42d_3793f96f1427870 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c0821002b42d_3793f96f1427870 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c0821002b42d_3793f96f1427870–

Completed 302 Found in 23ms (ActiveRecord: 2.4ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4hX1N0K1E0aqmcZlDx7IAexRE6lez56nQ2QQ6PF0FqIiXo5m6R8OS"], ["created_at", "2018-12-05 19:03:28.196613"], ["updated_at", "2018-12-05 19:03:28.196613"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.201303"], ["updated_at", "2018-12-05 19:03:28.201303"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ooOwb5oH2UlFhy89Ys8u9Ow38rO2Qq0R73LSYmcD3drZ6e/Oujirq"], ["created_at", "2018-12-05 19:03:28.208819"], ["updated_at", "2018-12-05 19:03:28.208819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3347], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4120], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4120], ["room_id", 3347], ["created_at", "2018-12-05 19:03:28.217390"], ["updated_at", "2018-12-05 19:03:28.217390"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 19:03:28.221557"], ["id", 3032]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3347], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4120], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4120], ["room_id", 3347], ["created_at", "2018-12-05 19:03:28.229167"], ["updated_at", "2018-12-05 19:03:28.229167"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 19:03:28.233026"], ["id", 3033]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.237212"], ["last_sign_in_at", "2018-12-05 19:03:28.237212"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.238264"], ["id", 4119]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4120], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3347], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4120], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3347], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.5ms)
Rendered layouts/_header-admin.html.erb (2.7ms)

Completed 200 OK in 18ms (Views: 13.6ms | ActiveRecord: 2.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kxntsP/HVIT6cgJswZe0Nu22kj29wh1v.gYlAVG0S/ykOn.jZmZTC"], ["created_at", "2018-12-05 19:03:28.270660"], ["updated_at", "2018-12-05 19:03:28.270660"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.274874"], ["updated_at", "2018-12-05 19:03:28.274874"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AdnOmlKkXD5AnACQ/fsA0.9BxpFRPa2Alb81QKnJvbFthSGK/lbba"], ["created_at", "2018-12-05 19:03:28.282651"], ["updated_at", "2018-12-05 19:03:28.282651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3348], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4122], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4122], ["room_id", 3348], ["created_at", "2018-12-05 19:03:28.291268"], ["updated_at", "2018-12-05 19:03:28.291268"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 19:03:28.295594"], ["id", 3034]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3348], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4122], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4122], ["room_id", 3348], ["created_at", "2018-12-05 19:03:28.303576"], ["updated_at", "2018-12-05 19:03:28.303576"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 19:03:28.307487"], ["id", 3035]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.311528"], ["last_sign_in_at", "2018-12-05 19:03:28.311528"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.312621"], ["id", 4121]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4122], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3348], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4122], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3348], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.2ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 14ms (Views: 10.7ms | ActiveRecord: 1.9ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BAZs3bR7tdulikuUMwSD7.MdXKVlfF/jYNcNxlKmuBTBq6EPcEVea"], ["created_at", "2018-12-05 19:03:28.343308"], ["updated_at", "2018-12-05 19:03:28.343308"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.347884"], ["last_sign_in_at", "2018-12-05 19:03:28.347884"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.348971"], ["id", 4123]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (6.3ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CAoE.MgDGfIgycf8sa9R1ea5CgULLpAbm1LCJd4eyqb9Xc.NJyXp6"], ["created_at", "2018-12-05 19:03:28.379288"], ["updated_at", "2018-12-05 19:03:28.379288"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.383607"], ["last_sign_in_at", "2018-12-05 19:03:28.383607"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.384627"], ["id", 4124]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KxNTfALn9JTYQfzP63YjBuzqvDDqnl62Gmo607ndpIZtm65nAtEtq"], ["created_at", "2018-12-05 19:03:28.399432"], ["updated_at", "2018-12-05 19:03:28.399432"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.403771"], ["last_sign_in_at", "2018-12-05 19:03:28.403771"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.404749"], ["id", 4125]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oZakNsIgHbS0yFPfVtTGLuhSschG9I2vntUDwxVkYssmpATioU8eC"], ["created_at", "2018-12-05 19:03:28.428520"], ["updated_at", "2018-12-05 19:03:28.428520"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.434700"], ["last_sign_in_at", "2018-12-05 19:03:28.434700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.436138"], ["id", 4126]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 17:03:28 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4HNlAPPC7ZESmJzDhteYSuI7rk6Qd2a9w08wNgYme.aSvGclMcpFG"], ["created_at", "2018-12-05 19:03:28.468321"], ["updated_at", "2018-12-05 19:03:28.468321"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.471905"], ["updated_at", "2018-12-05 19:03:28.471905"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3349” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.475767"], ["last_sign_in_at", "2018-12-05 19:03:28.475767"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.476696"], ["id", 4127]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3349"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3349], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rk3XuBIcA2.UzxSps1pbnuYcAOrJ/oxT5XMYuMDurUFVwx6tTLwcW"], ["created_at", "2018-12-05 19:03:28.497833"], ["updated_at", "2018-12-05 19:03:28.497833"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.501856"], ["updated_at", "2018-12-05 19:03:28.501856"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3350” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.505583"], ["last_sign_in_at", "2018-12-05 19:03:28.505583"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.506553"], ["id", 4128]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3350"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3350], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.522811"], ["updated_at", "2018-12-05 19:03:28.522811"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3351” for 127.0.0.1 at 2018-12-05 17:03:28 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3351"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ebMsle5.kRRT5Yr/XisS4uAgm3Q12hTNvbYAMK/jrc0K8k7nZJdye"], ["created_at", "2018-12-05 19:03:28.537826"], ["updated_at", "2018-12-05 19:03:28.537826"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.542044"], ["updated_at", "2018-12-05 19:03:28.542044"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3352” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.545765"], ["last_sign_in_at", "2018-12-05 19:03:28.545765"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.546678"], ["id", 4129]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3352"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.566872"], ["updated_at", "2018-12-05 19:03:28.566872"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3353” for 127.0.0.1 at 2018-12-05 17:03:28 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3353"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PB9pBkCUPlZmF6b.tfQeAuh5TCh6heMVEgXDN/vUAGvB/.H.EoOoW"], ["created_at", "2018-12-05 19:03:28.581392"], ["updated_at", "2018-12-05 19:03:28.581392"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.585543"], ["updated_at", "2018-12-05 19:03:28.585543"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3354/edit” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.589361"], ["last_sign_in_at", "2018-12-05 19:03:28.589361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.590310"], ["id", 4130]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3354"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3354], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (6.1ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eiztTNzyIaZolBr9E2GgJOUYzgCCbcFi0jzOWww7i1.ZNRQ0S7G/G"], ["created_at", "2018-12-05 19:03:28.618514"], ["updated_at", "2018-12-05 19:03:28.618514"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.622965"], ["updated_at", "2018-12-05 19:03:28.622965"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3355/edit” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.627293"], ["last_sign_in_at", "2018-12-05 19:03:28.627293"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.628490"], ["id", 4131]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3355"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3355], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.650783"], ["updated_at", "2018-12-05 19:03:28.650783"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3356” for 127.0.0.1 at 2018-12-05 17:03:28 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3356"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K./kT.FMFZ..6efE4hmMoevPgUhqOa2rg7VLsvx92d5z3dG8QftMS"], ["created_at", "2018-12-05 19:03:28.667221"], ["updated_at", "2018-12-05 19:03:28.667221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.673119"], ["last_sign_in_at", "2018-12-05 19:03:28.673119"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.674062"], ["id", 4132]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.686494"], ["updated_at", "2018-12-05 19:03:28.686494"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KGOGvgp3lFot7rK3FdiPH.s1uyYBKqpluFjGQLduX1.38n27GOW9i"], ["created_at", "2018-12-05 19:03:28.701056"], ["updated_at", "2018-12-05 19:03:28.701056"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.706485"], ["last_sign_in_at", "2018-12-05 19:03:28.706485"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.707625"], ["id", 4133]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.714132"], ["updated_at", "2018-12-05 19:03:28.714132"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5CeFSx4gUJY/5fIHNG3bbuyPlKhjy7pi15Acrkq0E6BKj/EBG3SlG"], ["created_at", "2018-12-05 19:03:28.727298"], ["updated_at", "2018-12-05 19:03:28.727298"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.733028"], ["last_sign_in_at", "2018-12-05 19:03:28.733028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.734026"], ["id", 4134]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hPyvyMfmRsxkFPjhd7WWuO1CLAtJwficBNFMN7jysIsU29PircN8."], ["created_at", "2018-12-05 19:03:28.753392"], ["updated_at", "2018-12-05 19:03:28.753392"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.759098"], ["last_sign_in_at", "2018-12-05 19:03:28.759098"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.760033"], ["id", 4135]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$orvABIdi/EeDPZJ0iupQBeLm9Xz6/bOPsdszrkz8Msoo7AqswVcc6"], ["created_at", "2018-12-05 19:03:28.778442"], ["updated_at", "2018-12-05 19:03:28.778442"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.783778"], ["last_sign_in_at", "2018-12-05 19:03:28.783778"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.784760"], ["id", 4136]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$APUVwWax3J.ryHgy9gAX6ucwmq.u4QGvO/IMBq8o0.QoI3LuGf94y"], ["created_at", "2018-12-05 19:03:28.799769"], ["updated_at", "2018-12-05 19:03:28.799769"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.803925"], ["updated_at", "2018-12-05 19:03:28.803925"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3359” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.808741"], ["last_sign_in_at", "2018-12-05 19:03:28.808741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.809805"], ["id", 4137]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3359"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3359], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 19:03:28.817633"], ["id", 3359]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3359 Completed 302 Found in 7ms (ActiveRecord: 1.2ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gYbeQ5peUrfo1dP/BeCYXuoFBM2AAFGBRUY8tdoNeTpawYmKl6T8q"], ["created_at", "2018-12-05 19:03:28.831705"], ["updated_at", "2018-12-05 19:03:28.831705"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.836080"], ["updated_at", "2018-12-05 19:03:28.836080"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3360” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.840775"], ["last_sign_in_at", "2018-12-05 19:03:28.840775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.841755"], ["id", 4138]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3360"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3360], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 19:03:28.850057"], ["id", 3360]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3360 Completed 302 Found in 8ms (ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fi4HpvJKcDFZXRBj8Um9F.W5fFrELHht.B/jvzI3G1R/UEWn2yefa"], ["created_at", "2018-12-05 19:03:28.865010"], ["updated_at", "2018-12-05 19:03:28.865010"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.869241"], ["updated_at", "2018-12-05 19:03:28.869241"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3361” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.873607"], ["last_sign_in_at", "2018-12-05 19:03:28.873607"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.874455"], ["id", 4139]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3361"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3361], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 0.9ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q5aszuo712VMLqNLOmnX2uZNf8EWlKlcPZNKCnu6n2CyBCYPd0bz6"], ["created_at", "2018-12-05 19:03:28.902833"], ["updated_at", "2018-12-05 19:03:28.902833"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.906621"], ["updated_at", "2018-12-05 19:03:28.906621"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3362” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.910960"], ["last_sign_in_at", "2018-12-05 19:03:28.910960"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.911904"], ["id", 4140]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3362"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3362], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 1.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$35aPlkrYb0JrutmRhYucCOYjP5y4yBtlAVeSUx.ulYlysgsm26Edm"], ["created_at", "2018-12-05 19:03:28.941017"], ["updated_at", "2018-12-05 19:03:28.941017"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.947020"], ["last_sign_in_at", "2018-12-05 19:03:28.947020"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.948373"], ["id", 4141]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.vCywoF7zwlngOfHqZ2S4O.I402q9NoA.cOjucO3P/XaC0Yj0gd8C"], ["created_at", "2018-12-05 19:03:28.963940"], ["updated_at", "2018-12-05 19:03:28.963940"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.968456"], ["updated_at", "2018-12-05 19:03:28.968456"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3363” for 127.0.0.1 at 2018-12-05 17:03:28 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:28.972624"], ["last_sign_in_at", "2018-12-05 19:03:28.972624"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:28.973659"], ["id", 4142]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3363"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3363], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3363]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YVJjATgFqgZybCQdywSqt.Pi0Ly7893Z0ucBpKLIahO0qY3/NzYAG"], ["created_at", "2018-12-05 19:03:28.995047"], ["updated_at", "2018-12-05 19:03:28.995047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:28.999937"], ["updated_at", "2018-12-05 19:03:28.999937"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3364” for 127.0.0.1 at 2018-12-05 17:03:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:29.004074"], ["last_sign_in_at", "2018-12-05 19:03:29.004074"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:29.005218"], ["id", 4143]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3364"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3364], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3364]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D6z/uulOPhJPG6X.y1ibkeQQwubbMrupvKDsFSlhHYfcINkKocw6i"], ["created_at", "2018-12-05 19:03:29.025156"], ["updated_at", "2018-12-05 19:03:29.025156"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:29.029540"], ["updated_at", "2018-12-05 19:03:29.029540"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3365” for 127.0.0.1 at 2018-12-05 17:03:29 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:29.033532"], ["last_sign_in_at", "2018-12-05 19:03:29.033532"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:29.034566"], ["id", 4144]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3365"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CrbAW48DM2yiT9HR6Ji/bemzH4FF73gEPKND3IRnr6bKAy9tD5jGK"], ["created_at", "2018-12-05 19:03:29.050762"], ["updated_at", "2018-12-05 19:03:29.050762"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:29.055342"], ["updated_at", "2018-12-05 19:03:29.055342"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3366” for 127.0.0.1 at 2018-12-05 17:03:29 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:29.059405"], ["last_sign_in_at", "2018-12-05 19:03:29.059405"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:29.060437"], ["id", 4145]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3366"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u67k1LirQZDqg2kTBsol4uhlbFw/YVHNst4T.ZRmFLm.G5q3c8DBy"], ["created_at", "2018-12-05 19:03:29.076143"], ["updated_at", "2018-12-05 19:03:29.076143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 17:03:29 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:29.081454"], ["last_sign_in_at", "2018-12-05 19:03:29.081454"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:29.082455"], ["id", 4146]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uYDuC8hK32K0WNBd5fRN5.TQZxSTEcszvNnCmoRPMSS9dvvnEUH6S"], ["created_at", "2018-12-05 19:03:29.109349"], ["updated_at", "2018-12-05 19:03:29.109349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:29.113518"], ["updated_at", "2018-12-05 19:03:29.113518"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:29.117347"], ["updated_at", "2018-12-05 19:03:29.117347"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:29.120968"], ["updated_at", "2018-12-05 19:03:29.120968"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3367], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4147], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4147], ["room_id", 3367], ["created_at", "2018-12-05 19:03:29.129257"], ["updated_at", "2018-12-05 19:03:29.129257"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-05 17:03:29 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:29.133848"], ["last_sign_in_at", "2018-12-05 19:03:29.133848"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:29.134816"], ["id", 4147]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.0ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 23ms (Views: 8.8ms | ActiveRecord: 1.5ms)

Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$z2bQr.9p0oaylKlGdJv5jumHPl5zToNPxTXIUQCxz1z4D17HEIXpS"], ["created_at", "2018-12-05 19:03:29.176622"], ["updated_at", "2018-12-05 19:03:29.176622"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:29.181437"], ["updated_at", "2018-12-05 19:03:29.181437"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:29.185542"], ["updated_at", "2018-12-05 19:03:29.185542"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 19:03:29.188970"], ["updated_at", "2018-12-05 19:03:29.188970"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3370], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4148], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4148], ["room_id", 3370], ["created_at", "2018-12-05 19:03:29.197816"], ["updated_at", "2018-12-05 19:03:29.197816"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-05 17:03:29 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 19:03:29.202583"], ["last_sign_in_at", "2018-12-05 19:03:29.202583"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 19:03:29.203539"], ["id", 4148]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (31.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (36.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (24.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$F3b5RwVuCVuBdQpqug5AtuGe9ucnFDLCtRH6rBv.2IiUiObpQc/E6"], ["created_at", "2018-12-06 10:38:57.224067"], ["updated_at", "2018-12-06 10:38:57.224067"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (146.4ms)
Rendered users/sessions/new.html.erb within layouts/application (601.3ms)

Completed 200 OK in 635ms (Views: 610.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:38:58.022862"], ["last_sign_in_at", "2018-12-06 10:38:58.022862"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:38:58.024221"], ["id", 4149]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 49ms (ActiveRecord: 3.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4149], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.8ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4149], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by RoomsController#new as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4149], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.1ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 42ms (Views: 13.3ms | ActiveRecord: 4.6ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4149], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4149], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$5KLFzpTH5rj7kKow5rbHfubrIo.CutdK3a/hJmKVwldBO5OdIwBYO"], ["created_at", "2018-12-06 10:38:58.172270"], ["updated_at", "2018-12-06 10:38:58.172270"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:38:58.197788"], ["last_sign_in_at", "2018-12-06 10:38:58.197788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:38:58.198882"], ["id", 4150]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4150], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4150], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.9ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by RoomsController#new as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4150], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.9ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4150], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4150], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.6ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.4ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$DyJhs4i.RdkWbD33DmCRh.rR705ZGYqiwucNLfOS05bus.mEnX4Hu"], ["created_at", "2018-12-06 10:38:58.291789"], ["updated_at", "2018-12-06 10:38:58.291789"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:38:58.357399"], ["last_sign_in_at", "2018-12-06 10:38:58.357399"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:38:58.358497"], ["id", 4151]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4151], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)

 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$7cyNTVAX69JaRpZNfI3/OeOQYJ/lY7I594F/HPcEZrPRUpq71odH."], ["created_at", "2018-12-06 10:38:58.403870"], ["updated_at", "2018-12-06 10:38:58.403870"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.6ms)
Rendered users/sessions/new.html.erb within layouts/application (4.5ms)

Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 4ms (ActiveRecord: 0.6ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$G9C7wBR3UMqWTZO.emfaG.z1XHWNmeqmAfvHmCnxRmDHifiCfvGWy"], ["created_at", "2018-12-06 10:38:58.461860"], ["updated_at", "2018-12-06 10:38:58.461860"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:38:58.487511"], ["last_sign_in_at", "2018-12-06 10:38:58.487511"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:38:58.488583"], ["id", 4153]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4153], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (19.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:38:58.511335"], ["updated_at", "2018-12-06 10:38:58.511335"], ["tipo_sala", "Auditório"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4153], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (5.0ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 1.5ms) Started GET “/appointments/3373” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3373"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3373], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (37.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3373')
Rendered appointments/show.html.erb within layouts/application (49.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4153], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 91ms (Views: 21.4ms | ActiveRecord: 40.7ms) Started POST “/appointments.3373” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4153], ["LIMIT", 1]]
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3373], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4153], ["LIMIT", 1]]
SQL (22.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4153], ["room_id", 3373], ["created_at", "2018-12-06 10:38:58.759975"], ["updated_at", "2018-12-06 10:38:58.759975"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 107ms (ActiveRecord: 27.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4153], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Xes3g5LWAzOCThoMuZyGw.PekRVhKPbwHAE/oOUDyyJcdMTILQqia"], ["created_at", "2018-12-06 10:38:58.826819"], ["updated_at", "2018-12-06 10:38:58.826819"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (3.1ms)
Rendered users/sessions/new.html.erb within layouts/application (6.4ms)

Completed 200 OK in 14ms (Views: 11.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:38:58.866453"], ["last_sign_in_at", "2018-12-06 10:38:58.866453"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:38:58.867513"], ["id", 4154]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4154], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:38:58.895621"], ["updated_at", "2018-12-06 10:38:58.895621"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3374], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4154], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4154], ["room_id", 3374], ["created_at", "2018-12-06 10:38:58.909746"], ["updated_at", "2018-12-06 10:38:58.909746"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4154], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 14ms (Views: 9.5ms | ActiveRecord: 1.4ms) Started GET “/appointments/3374” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3374"}
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3374], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3374')
Rendered appointments/show.html.erb within layouts/application (11.1ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4154], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (3.1ms)

Completed 200 OK in 26ms (Views: 21.4ms | ActiveRecord: 2.4ms) Started POST “/appointments.3374” for 127.0.0.1 at 2018-12-06 08:38:58 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4154], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3374], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4154], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4154], ["room_id", 3374], ["created_at", "2018-12-06 10:38:59.002628"], ["updated_at", "2018-12-06 10:38:59.002628"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4154], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$YMJtn/PCV88B9PrWZWmKkeAyxynQyZqVXOm/Rqfuu7rS5XAcWCq8m"], ["created_at", "2018-12-06 10:38:59.043233"], ["updated_at", "2018-12-06 10:38:59.043233"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.7ms)
Rendered users/sessions/new.html.erb within layouts/application (5.6ms)

Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:38:59.077585"], ["last_sign_in_at", "2018-12-06 10:38:59.077585"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:38:59.078712"], ["id", 4155]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 12ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4155], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.9ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:38:59.104332"], ["updated_at", "2018-12-06 10:38:59.104332"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.8ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3375], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4155], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4155], ["room_id", 3375], ["created_at", "2018-12-06 10:38:59.119407"], ["updated_at", "2018-12-06 10:38:59.119407"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4155], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4155]]
Rendered appointments/my_appointments.html.erb within layouts/application (8.0ms)
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 36ms (Views: 14.9ms | ActiveRecord: 1.4ms) Started DELETE “/appointments/3041” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3041"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3041], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3041]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 7ms (ActiveRecord: 1.9ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4155], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4155]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$8bPYeO0343YyVmWMxP0Vyuoyj2uc646kG9V/e9B4iZDwqp4y/bpfK"], ["created_at", "2018-12-06 10:38:59.225493"], ["updated_at", "2018-12-06 10:38:59.225493"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.2ms)
Rendered users/sessions/new.html.erb within layouts/application (4.2ms)

Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:38:59.253168"], ["last_sign_in_at", "2018-12-06 10:38:59.253168"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:38:59.254281"], ["id", 4156]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4156], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.6ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-06 10:38:59.272767"], ["updated_at", "2018-12-06 10:38:59.272767"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3376], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4156], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["user_id", 4156], ["room_id", 3376], ["created_at", "2018-12-06 10:38:59.284326"], ["updated_at", "2018-12-06 10:38:59.284326"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4156], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4156]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (10.0ms)

Completed 200 OK in 21ms (Views: 16.3ms | ActiveRecord: 1.4ms) Started DELETE “/appointments/3042” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3042"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3042], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3042]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 4ms (ActiveRecord: 1.7ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4156], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4156]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 1.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$68wPDEtDitNCKhUefAYjce5e84d3fzjGCVAoME2nRn3yMrgkKIXMi"], ["created_at", "2018-12-06 10:38:59.349288"], ["updated_at", "2018-12-06 10:38:59.349288"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:38:59.376139"], ["last_sign_in_at", "2018-12-06 10:38:59.376139"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:38:59.377235"], ["id", 4157]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4157], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.6ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 1.0ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-06 10:38:59.397966"], ["updated_at", "2018-12-06 10:38:59.397966"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-06 10:38:59.401185"], ["updated_at", "2018-12-06 10:38:59.401185"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4157], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (3.8ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4157], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 1.4ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.9ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4157], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 1.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$7kIP6hR4rnn4tzB9tAXct.f93yeBlpzQMXrKtWmaeuZHvJxX0C1ya"], ["created_at", "2018-12-06 10:38:59.461204"], ["updated_at", "2018-12-06 10:38:59.461204"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:38:59.487301"], ["last_sign_in_at", "2018-12-06 10:38:59.487301"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:38:59.488418"], ["id", 4158]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4158], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.6ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 1.0ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4158], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 1.4ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$PSHf/GMVqo7BZeHsf0.Y6.m.8YkN3YetVh2nNNsDIpj52oK5cS8je"], ["created_at", "2018-12-06 10:38:59.576545"], ["updated_at", "2018-12-06 10:38:59.576545"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:38:59.602438"], ["last_sign_in_at", "2018-12-06 10:38:59.602438"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:38:59.603463"], ["id", 4159]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4159], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:38:59.623540"], ["updated_at", "2018-12-06 10:38:59.623540"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3379], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4159], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4159], ["room_id", 3379], ["created_at", "2018-12-06 10:38:59.633974"], ["updated_at", "2018-12-06 10:38:59.633974"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4159], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 1.4ms) Started GET “/appointments/3379” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3379"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3379], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3379')
Rendered appointments/show.html.erb within layouts/application (8.0ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4159], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 18ms (Views: 13.7ms | ActiveRecord: 2.1ms) Started POST “/appointments.3379” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4159], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3379], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4159], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4159], ["room_id", 3379], ["created_at", "2018-12-06 10:38:59.701975"], ["updated_at", "2018-12-06 10:38:59.701975"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4159], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$djfm4B0/FvxTIztj.ZlsR.m2YMA9nofbZggT9XnJrHBzro72ZvP9W"], ["created_at", "2018-12-06 10:38:59.730260"], ["updated_at", "2018-12-06 10:38:59.730260"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:38:59.755668"], ["last_sign_in_at", "2018-12-06 10:38:59.755668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:38:59.756746"], ["id", 4160]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4160], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:38:59.775898"], ["updated_at", "2018-12-06 10:38:59.775898"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3380], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4160], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4160], ["room_id", 3380], ["created_at", "2018-12-06 10:38:59.786099"], ["updated_at", "2018-12-06 10:38:59.786099"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4160], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4160]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$EDCWb5ixGS4TQeNkKwIkaOXiuW1tAZl4v7N3JA0dNKW6GA90r.3pO"], ["created_at", "2018-12-06 10:38:59.821662"], ["updated_at", "2018-12-06 10:38:59.821662"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:38:59.847262"], ["last_sign_in_at", "2018-12-06 10:38:59.847262"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:38:59.848447"], ["id", 4161]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4161], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-06 10:38:59.866882"], ["updated_at", "2018-12-06 10:38:59.866882"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3381], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4161], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["user_id", 4161], ["room_id", 3381], ["created_at", "2018-12-06 10:38:59.876428"], ["updated_at", "2018-12-06 10:38:59.876428"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4161], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4161]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (13.9ms)

Completed 200 OK in 24ms (Views: 20.7ms | ActiveRecord: 1.3ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$9NBISI1Wfi41pxZR.rDIWuZmjmNTRGyE1pOMCz2GAoKwaHmq8bnPu"], ["created_at", "2018-12-06 10:38:59.925368"], ["updated_at", "2018-12-06 10:38:59.925368"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.1ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:38:59.949427"], ["last_sign_in_at", "2018-12-06 10:38:59.949427"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:38:59.950428"], ["id", 4162]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4162], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$HBVR6r31XmYTygfm8LMg4uLmmNE03Z8RZqn2vkXOmei/QzMktsf4u"], ["created_at", "2018-12-06 10:38:59.980790"], ["updated_at", "2018-12-06 10:38:59.980790"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:39:00.006423"], ["last_sign_in_at", "2018-12-06 10:39:00.006423"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:39:00.007530"], ["id", 4163]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4163], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 10:39:00.026131"], ["updated_at", "2018-12-06 10:39:00.026131"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:39:00.029986"], ["updated_at", "2018-12-06 10:39:00.029986"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4163], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 1.2ms) Started GET “/appointments/3382” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3382"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3382], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3382')
Rendered appointments/show.html.erb within layouts/application (2.7ms)
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4163], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 1.4ms) Started POST “/appointments.3382” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4163], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3382], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4163], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4163], ["room_id", 3382], ["created_at", "2018-12-06 10:39:00.093305"], ["updated_at", "2018-12-06 10:39:00.093305"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4163], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$tCwJYFKi0/AdVEqYjYq36e2WQYkSTkfhgSATyh2fyOpMru4tWLA1m"], ["created_at", "2018-12-06 10:39:00.122085"], ["updated_at", "2018-12-06 10:39:00.122085"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.9ms)

Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:39:00.148888"], ["last_sign_in_at", "2018-12-06 10:39:00.148888"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:39:00.149842"], ["id", 4164]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4164], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 10:39:00.167213"], ["updated_at", "2018-12-06 10:39:00.167213"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:39:00.170389"], ["updated_at", "2018-12-06 10:39:00.170389"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4164], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 1.3ms) Started GET “/appointments/3384” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3384"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3384], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3384')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4164], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 1.8ms) Started POST “/appointments.3384” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4164], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4164], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$.5l6KYmOHTsVOhi7nYXaXuHgjliaVHFc2DUVayWbPPRfLt2EagCi."], ["created_at", "2018-12-06 10:39:00.253870"], ["updated_at", "2018-12-06 10:39:00.253870"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:39:00.280123"], ["last_sign_in_at", "2018-12-06 10:39:00.280123"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:39:00.281144"], ["id", 4165]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4165], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-06 10:39:00.299137"], ["updated_at", "2018-12-06 10:39:00.299137"], ["tipo_sala", "tipoTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4165], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4165], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 1.4ms) Started DELETE “/rooms/3386” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3386"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4165], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3386], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3386]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4165], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.6ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$EZ0/Xekf85CqYZCBi5wwlen5m0FuXmRXvhzW8vLYX7oLCFUCtQEn2"], ["created_at", "2018-12-06 10:39:00.373318"], ["updated_at", "2018-12-06 10:39:00.373318"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-06 10:39:00.376961"], ["updated_at", "2018-12-06 10:39:00.376961"], ["tipo_sala", "tipoTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.9ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:39:00.413380"], ["last_sign_in_at", "2018-12-06 10:39:00.413380"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:39:00.414446"], ["id", 4166]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4166], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4166], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 1.4ms) Started GET “/rooms/3387/edit” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3387"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4166], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3387], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 14ms (Views: 9.2ms | ActiveRecord: 1.3ms) Started PATCH “/rooms/3387” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"3387"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4166], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3387], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 24ms (Views: 17.4ms | ActiveRecord: 1.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$vKrekooKQkBPaNKo8qqE7OzpcnhKjVu0tx6omL51XQ//QKChaz9Aa"], ["created_at", "2018-12-06 10:39:00.535976"], ["updated_at", "2018-12-06 10:39:00.535976"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$pJYdIB7o9DTTG1yM3yzuGOSn.4TAWA52wcY9cPfvUR/VsOrfJdgEW"], ["created_at", "2018-12-06 10:39:00.554850"], ["updated_at", "2018-12-06 10:39:00.554850"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:39:00.579352"], ["last_sign_in_at", "2018-12-06 10:39:00.579352"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:39:00.580215"], ["id", 4168]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4168], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.9ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4168], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 1.3ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-06 10:39:00.612543"], ["updated_at", "2018-12-06 10:39:00.612543"], ["tipo_sala", "Coodernação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-06 10:39:00.615831"], ["updated_at", "2018-12-06 10:39:00.615831"], ["tipo_sala", "Predio CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-06 10:39:00.618530"], ["updated_at", "2018-12-06 10:39:00.618530"], ["tipo_sala", "Salas de Reunião"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ECLdFcbTlnEBE3XNVRF/JO2kxlqSnw/u9ZPSyZVhYna4aR3xC5z0e"], ["created_at", "2018-12-06 10:39:00.654112"], ["updated_at", "2018-12-06 10:39:00.654112"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.4ms)
Rendered users/sessions/new.html.erb within layouts/application (3.9ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:39:00.679750"], ["last_sign_in_at", "2018-12-06 10:39:00.679750"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:39:00.680796"], ["id", 4169]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4169], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 10:39:00.699234"], ["updated_at", "2018-12-06 10:39:00.699234"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:39:00.702423"], ["updated_at", "2018-12-06 10:39:00.702423"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4169], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$J87oXGxvLA93luC8j7ibne.zrD8TVgY/eZ9TKSwbkNjhafje8RRjG"], ["created_at", "2018-12-06 10:39:00.740549"], ["updated_at", "2018-12-06 10:39:00.740549"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:39:00.765537"], ["last_sign_in_at", "2018-12-06 10:39:00.765537"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:39:00.766580"], ["id", 4170]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4170], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 10:39:00.785626"], ["updated_at", "2018-12-06 10:39:00.785626"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:39:00.789100"], ["updated_at", "2018-12-06 10:39:00.789100"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4170], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$u99s.1wl2/v0AZbBf.6mUu35IvCAZsvMbS9a0pFW8LdbLV8JGwHjO"], ["created_at", "2018-12-06 10:39:00.829007"], ["updated_at", "2018-12-06 10:39:00.829007"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:39:00.854904"], ["last_sign_in_at", "2018-12-06 10:39:00.854904"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:39:00.856034"], ["id", 4171]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4171], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 10:39:00.873727"], ["updated_at", "2018-12-06 10:39:00.873727"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:39:00.877061"], ["updated_at", "2018-12-06 10:39:00.877061"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4171], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4171], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.5ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4171], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4171], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4171], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 0.6ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-06 08:39:00 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-07", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4171], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-07' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 43ms (Views: 6.2ms | ActiveRecord: 2.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$RiRmjA6D8MdtV/cWEfBbteUQktOfWW4ON4KyLR3rU0f1pFHW.W10i"], ["created_at", "2018-12-06 10:39:00.998679"], ["updated_at", "2018-12-06 10:39:00.998679"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:39:01.036091"], ["last_sign_in_at", "2018-12-06 10:39:01.036091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:39:01.036967"], ["id", 4172]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4172], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.2ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (2.6ms)
Rendered users/registrations/new.html.erb within layouts/application (5.4ms)

Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$3znITjQDpCXYA9tuHO.vKOcb8G/./S14KPAyv9Cd5ac4T4JaW8J4e"], ["created_at", "2018-12-06 10:39:01.159230"], ["updated_at", "2018-12-06 10:39:01.159230"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:39:01.161911"], ["last_sign_in_at", "2018-12-06 10:39:01.161911"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:39:01.162649"], ["id", 4173]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 15ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4173], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$1DwqKz7Q0jluGS.wm3H9juNN7pzoT3S6NodYKMg5UceatTCKVbJpy"], ["created_at", "2018-12-06 10:39:01.191441"], ["updated_at", "2018-12-06 10:39:01.191441"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:39:01.227967"], ["last_sign_in_at", "2018-12-06 10:39:01.227967"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:39:01.228832"], ["id", 4174]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4174], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.8ms) Started GET “/users/4174/edit” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"4174"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4174], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 0.8ms) Started PUT “/users/4174” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"4174"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4174], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4174], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 4174], ["LIMIT", 1]]
SQL (0.5ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-06 10:39:01.295043"], ["id", 4174]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 16ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4174], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.0ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.6ms)

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$gA7MSVyvNgClNwPz6Hfh5uSs7bTBkI3p3UG2h0zZAAlmyAivN0xZW"], ["created_at", "2018-12-06 10:39:01.325888"], ["updated_at", "2018-12-06 10:39:01.325888"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:39:01.350675"], ["last_sign_in_at", "2018-12-06 10:39:01.350675"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:39:01.351565"], ["id", 4175]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4175], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-06 10:39:01.368894"], ["updated_at", "2018-12-06 10:39:01.368894"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4175], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 1.3ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (3.3ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4175], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 2.0ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4175], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4175], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4175], ["room_id", 1], ["created_at", "2018-12-06 10:39:01.425851"], ["updated_at", "2018-12-06 10:39:01.425851"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4175], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$gz9KksoJCCtm80G5HtmQzuxcJNOjtZvDdP3P6bzw81k.j9i9hiSmq"], ["created_at", "2018-12-06 10:39:01.452114"], ["updated_at", "2018-12-06 10:39:01.452114"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.1ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:39:01.477116"], ["last_sign_in_at", "2018-12-06 10:39:01.477116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:39:01.477989"], ["id", 4176]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4176], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-06 10:39:01.496093"], ["updated_at", "2018-12-06 10:39:01.496093"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by RoomsController#index as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4176], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 1.1ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4176], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 2.0ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4176], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4176], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4176], ["room_id", 1], ["created_at", "2018-12-06 10:39:01.555663"], ["updated_at", "2018-12-06 10:39:01.555663"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4176], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$0PX6Xfr/mPOkacmmwm/OC.A8xxAOOVq.KQ71WM8E7gPY9quHjET6S"], ["created_at", "2018-12-06 10:39:01.585027"], ["updated_at", "2018-12-06 10:39:01.585027"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (1.4ms)
Rendered password_resets/new.html.erb within layouts/application (4.1ms)

Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.7ms)
Rendered password_resets/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.5ms)

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$TdKfiZb4.ycnLFfNkkvXG.uYas0QT/mx0UuhQXGQonFnIq/J3zFIG"], ["updated_at", "2018-12-06 10:39:01.652415"], ["id", 4177]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 08:39:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$5mhzBorJOMhhzg0fa2vzLuyvPNpPjd7K3G0Eu4n2Y9FVmdSFZ8kpm"], ["created_at", "2018-12-06 10:40:42.097575"], ["updated_at", "2018-12-06 10:40:42.097575"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:40:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.2ms)
Rendered users/sessions/new.html.erb within layouts/application (297.1ms)

Completed 200 OK in 318ms (Views: 306.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:40:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:40:42.469695"], ["last_sign_in_at", "2018-12-06 10:40:42.469695"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:40:42.470973"], ["id", 4178]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.6ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:40:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4178], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.2ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 08:40:42 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4178], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 22ms (Views: 10.5ms | ActiveRecord: 4.5ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.5ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$cKj2siKBo3co9poc4S.GP.RpsgHBlBYUYPcRlNnBJBmqwqwIMq5Tm"], ["created_at", "2018-12-06 12:38:44.047928"], ["updated_at", "2018-12-06 12:38:44.047928"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 10:38:44 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (5.5ms)

Completed 200 OK in 302ms (Views: 294.2ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 10:38:44 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.3ms)
Rendered users/sessions/new.html.erb within layouts/application (20.8ms)

Completed 200 OK in 29ms (Views: 26.7ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-06 10:38:44 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (1.3ms)
Rendered password_resets/new.html.erb within layouts/application (4.0ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-06 10:38:44 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.7ms)
Rendered password_resets/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 0.8ms)

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$xlsLYD8Q0nq2NKaky5m8h.gAKkIhiJ03TNDRcSXJWAVF3krJZOwKe"], ["updated_at", "2018-12-06 12:38:44.516575"], ["id", 4179]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$l.kazDyxGoTH7jhDq3UyAOprxket/8yfuR75ENhP7Zc84Ex0j4WGy"], ["created_at", "2018-12-06 12:38:55.293623"], ["updated_at", "2018-12-06 12:38:55.293623"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 10:38:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.1ms)
Rendered users/sessions/new.html.erb within layouts/application (304.9ms)

Completed 200 OK in 326ms (Views: 314.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 10:38:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 12:38:55.672337"], ["last_sign_in_at", "2018-12-06 12:38:55.672337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 12:38:55.673539"], ["id", 4180]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 10:38:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4180], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (4.4ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 15ms (Views: 12.2ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-06 12:38:55.733556"], ["updated_at", "2018-12-06 12:38:55.733556"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 10:38:55 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4180], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.8ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 1.7ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 10:38:55 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (12.8ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4180], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 33ms (Views: 16.2ms | ActiveRecord: 5.4ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 10:38:55 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4180], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4180], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4180], ["room_id", 1], ["created_at", "2018-12-06 12:38:55.858183"], ["updated_at", "2018-12-06 12:38:55.858183"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 41ms (ActiveRecord: 7.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 10:38:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4180], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.5ms)
Rendered layouts/_header-admin.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$30S1TiktN813IWcU6Unhl.b/uMM6njYiRwNGp4j6AkTpthBFVV9Ey"], ["created_at", "2018-12-06 12:38:55.895456"], ["updated_at", "2018-12-06 12:38:55.895456"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 10:38:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 10:38:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 12:38:55.920120"], ["last_sign_in_at", "2018-12-06 12:38:55.920120"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 12:38:55.921168"], ["id", 4181]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-06 10:38:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4181], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-06 12:38:55.938400"], ["updated_at", "2018-12-06 12:38:55.938400"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 10:38:55 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4181], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 1.4ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 10:38:55 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4181], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 2.3ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 10:38:55 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4181], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4181], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4181], ["room_id", 1], ["created_at", "2018-12-06 12:38:55.996467"], ["updated_at", "2018-12-06 12:38:55.996467"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 10:38:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4181], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (2.1ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (1.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$zRwqxwVP/Os20kVjFtk.guljg8jUu0KQXnXkutSjkKH7JWoe8CD3."], ["created_at", "2018-12-06 12:39:41.897653"], ["updated_at", "2018-12-06 12:39:41.897653"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 10:39:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (19.2ms)
Rendered users/sessions/new.html.erb within layouts/application (310.5ms)

Completed 200 OK in 330ms (Views: 318.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 10:39:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 12:39:42.287123"], ["last_sign_in_at", "2018-12-06 12:39:42.287123"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 12:39:42.288155"], ["id", 4182]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 2.6ms) Started GET “/” for 127.0.0.1 at 2018-12-06 10:39:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4182], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 12:39:42.376097"], ["updated_at", "2018-12-06 12:39:42.376097"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3397], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4182], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4182], ["room_id", 3397], ["created_at", "2018-12-06 12:39:42.428625"], ["updated_at", "2018-12-06 12:39:42.428625"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 10:39:42 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4182], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 14ms (Views: 9.5ms | ActiveRecord: 1.3ms) Started GET “/appointments/3397” for 127.0.0.1 at 2018-12-06 10:39:42 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3397"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3397], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3397')
Rendered appointments/show.html.erb within layouts/application (14.8ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4182], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 27ms (Views: 21.9ms | ActiveRecord: 2.3ms) Started POST “/appointments.3397” for 127.0.0.1 at 2018-12-06 10:39:42 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4182], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3397], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4182], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4182], ["room_id", 3397], ["created_at", "2018-12-06 12:39:42.542627"], ["updated_at", "2018-12-06 12:39:42.542627"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 16ms (ActiveRecord: 3.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 10:39:42 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4182], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (7.0ms)
Rendered layouts/_header-admin.html.erb (5.1ms)

Completed 200 OK in 23ms (Views: 19.0ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (1.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$wPZIFlrwn4grPxHezED2Fe7IVjmmT6ukw7yecRp9kSg0dq9qM6N/e"], ["created_at", "2018-12-06 12:39:56.504283"], ["updated_at", "2018-12-06 12:39:56.504283"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 10:39:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (49.4ms)
Rendered users/sessions/new.html.erb within layouts/application (332.4ms)

Completed 200 OK in 353ms (Views: 341.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 10:39:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 12:39:56.910117"], ["last_sign_in_at", "2018-12-06 12:39:56.910117"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 12:39:56.911460"], ["id", 4183]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 10:39:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4183], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 12:39:56.969410"], ["updated_at", "2018-12-06 12:39:56.969410"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 10:39:56 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4183], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.8ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (7.6ms)
Rendered layouts/_header-user.html.erb (2.9ms)

Completed 200 OK in 32ms (Views: 17.5ms | ActiveRecord: 1.7ms) Started GET “/appointments/3398” for 127.0.0.1 at 2018-12-06 10:39:57 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3398"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3398], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3398')
Rendered appointments/show.html.erb within layouts/application (24.9ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4183], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 65ms (Views: 35.7ms | ActiveRecord: 5.7ms) Started POST “/appointments.3398” for 127.0.0.1 at 2018-12-06 10:39:57 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4183], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3398], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4183], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4183], ["room_id", 3398], ["created_at", "2018-12-06 12:39:57.211007"], ["updated_at", "2018-12-06 12:39:57.211007"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 69ms (ActiveRecord: 7.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 10:39:57 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4183], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (5.5ms)
Rendered layouts/_header-admin.html.erb (3.1ms)

Completed 200 OK in 17ms (Views: 13.8ms | ActiveRecord: 0.9ms)

 (0.6ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$bjhEdVkXjEGaG8r7tXcei.1peOOPRDi15BGgW9PhIh1GK83Hr1k5W"], ["created_at", "2018-12-06 12:39:57.264178"], ["updated_at", "2018-12-06 12:39:57.264178"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 10:39:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.1ms)
Rendered users/sessions/new.html.erb within layouts/application (4.2ms)

Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 10:39:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 12:39:57.293121"], ["last_sign_in_at", "2018-12-06 12:39:57.293121"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 12:39:57.294273"], ["id", 4184]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-06 10:39:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4184], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.6ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 12:39:57.317874"], ["updated_at", "2018-12-06 12:39:57.317874"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3399], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4184], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4184], ["room_id", 3399], ["created_at", "2018-12-06 12:39:57.329897"], ["updated_at", "2018-12-06 12:39:57.329897"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 10:39:57 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4184], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 20ms (Views: 15.7ms | ActiveRecord: 1.4ms) Started GET “/appointments/3399” for 127.0.0.1 at 2018-12-06 10:39:57 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3399"}
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3399], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3399')
Rendered appointments/show.html.erb within layouts/application (7.5ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4184], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 16ms (Views: 12.2ms | ActiveRecord: 2.4ms) Started POST “/appointments.3399” for 127.0.0.1 at 2018-12-06 10:39:57 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4184], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3399], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4184], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4184], ["room_id", 3399], ["created_at", "2018-12-06 12:39:57.405942"], ["updated_at", "2018-12-06 12:39:57.405942"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 10:39:57 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4184], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.6ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$AZxXwxAgEPTiCXZYSRYmPORdS1JUEGb1ePAcvUFs3sLSAYxKRjOS."], ["created_at", "2018-12-06 12:40:18.709554"], ["updated_at", "2018-12-06 12:40:18.709554"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 10:40:18 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (19.1ms)
Rendered users/sessions/new.html.erb within layouts/application (328.0ms)

Completed 200 OK in 348ms (Views: 336.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 10:40:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 12:40:19.114610"], ["last_sign_in_at", "2018-12-06 12:40:19.114610"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 12:40:19.115819"], ["id", 4185]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 3.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 10:40:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4185], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 12:40:19.168539"], ["updated_at", "2018-12-06 12:40:19.168539"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 12:40:19.172645"], ["updated_at", "2018-12-06 12:40:19.172645"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.5ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4185], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4185], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4185], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4185], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 10:40:19 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4185], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 11ms (Views: 7.1ms | ActiveRecord: 0.7ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-06 10:40:19 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-07", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4185], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.6ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-07' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 22ms (Views: 6.2ms | ActiveRecord: 2.7ms)

 (0.6ms)  ROLLBACK
 (1.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$R7C4VjIfMisofQziXH7F.ujxv4SHJNJnpiHi1qzsrSMcyy3kswHwC"], ["created_at", "2018-12-06 12:40:45.397647"], ["updated_at", "2018-12-06 12:40:45.397647"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 10:40:45 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.0ms)
Rendered users/sessions/new.html.erb within layouts/application (296.4ms)

Completed 200 OK in 317ms (Views: 305.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 10:40:45 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 12:40:45.770141"], ["last_sign_in_at", "2018-12-06 12:40:45.770141"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 12:40:45.771370"], ["id", 4186]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 10:40:45 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4186], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.1ms)
Rendered layouts/_header-admin.html.erb (2.3ms)

Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-06 12:40:45.821807"], ["updated_at", "2018-12-06 12:40:45.821807"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-06 12:40:45.825896"], ["updated_at", "2018-12-06 12:40:45.825896"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.6ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4186], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 10:40:45 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.5ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4186], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 2.1ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 10:40:45 -0200 Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (1.0ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4186], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 1.8ms)

 (0.6ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$zv9sNHic1ovQy756zIHYteD0wdx1MR66J4doaFNhWHsVy35fdEEUS"], ["created_at", "2018-12-06 12:42:05.701391"], ["updated_at", "2018-12-06 12:42:05.701391"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 10:42:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (27.5ms)
Rendered users/sessions/new.html.erb within layouts/application (229.1ms)

Completed 200 OK in 252ms (Views: 239.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 10:42:06 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 12:42:06.016136"], ["last_sign_in_at", "2018-12-06 12:42:06.016136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 12:42:06.017592"], ["id", 4187]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 22ms (ActiveRecord: 2.6ms) Started GET “/” for 127.0.0.1 at 2018-12-06 10:42:06 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4187], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.7ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 10:42:06 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.6ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4187], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 23ms (Views: 11.1ms | ActiveRecord: 4.3ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$XUI2URN0oWwre2THwCk4RODoe0LnuvZfXgNJropraV4OpBnW87CWm"], ["created_at", "2018-12-06 12:42:57.662497"], ["updated_at", "2018-12-06 12:42:57.662497"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 10:42:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.3ms)
Rendered users/sessions/new.html.erb within layouts/application (304.3ms)

Completed 200 OK in 324ms (Views: 312.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 10:42:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 12:42:58.040377"], ["last_sign_in_at", "2018-12-06 12:42:58.040377"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 12:42:58.041501"], ["id", 4188]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 23ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 10:42:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4188], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.6ms)

Completed 200 OK in 42ms (Views: 39.9ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 10:42:58 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4188], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (7.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 21ms (Views: 8.9ms | ActiveRecord: 4.3ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-06 12:42:58.149518"], ["updated_at", "2018-12-06 12:42:58.149518"], ["tipo_sala", "Coodernação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-06 12:42:58.153367"], ["updated_at", "2018-12-06 12:42:58.153367"], ["tipo_sala", "Predio CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-06 12:42:58.156574"], ["updated_at", "2018-12-06 12:42:58.156574"], ["tipo_sala", "Salas de Reunião"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$mnIJunlp23mc3RIopha45.e54B8l65.vvlRqq7G1ELHFe8LMtZSKW"], ["created_at", "2018-12-06 16:12:34.089272"], ["updated_at", "2018-12-06 16:12:34.089272"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 14:12:34 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (20.9ms)
Rendered users/sessions/new.html.erb within layouts/application (329.6ms)

Completed 200 OK in 351ms (Views: 339.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 14:12:34 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 16:12:34.498805"], ["last_sign_in_at", "2018-12-06 16:12:34.498805"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 16:12:34.499948"], ["id", 4189]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 24ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-06 14:12:34 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4189], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (5.4ms)
Rendered layouts/_header-user.html.erb (13.5ms)

Completed 200 OK in 32ms (Views: 28.5ms | ActiveRecord: 0.7ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 14:12:34 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4189], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (1.9ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (12.3ms)
Rendered layouts/_header-user.html.erb (2.9ms)

Completed 200 OK in 38ms (Views: 19.7ms | ActiveRecord: 5.1ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-06 16:12:34.641417"], ["updated_at", "2018-12-06 16:12:34.641417"], ["tipo_sala", "Coodernação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-06 16:12:34.646733"], ["updated_at", "2018-12-06 16:12:34.646733"], ["tipo_sala", "Predio CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-06 16:12:34.651084"], ["updated_at", "2018-12-06 16:12:34.651084"], ["tipo_sala", "Salas de Reunião"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$Agb/dLqqbKdSozmNkR/qfOn0LBteD/VFk9v2bgmFPKubxrIb4pC06"], ["created_at", "2018-12-06 16:18:41.272230"], ["updated_at", "2018-12-06 16:18:41.272230"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 14:18:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.0ms)
Rendered users/sessions/new.html.erb within layouts/application (295.7ms)

Completed 200 OK in 317ms (Views: 304.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 14:18:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 16:18:41.641773"], ["last_sign_in_at", "2018-12-06 16:18:41.641773"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 16:18:41.642846"], ["id", 4190]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-06 14:18:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4190], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.7ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 14:18:41 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.4ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4190], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 22ms (Views: 10.8ms | ActiveRecord: 4.2ms)

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NZfWP9yUU0UMfksBN1HoMe2Up2LtTWk/OPdwknBZ7FZ6smT7m7WDe"], ["created_at", "2018-12-06 16:31:33.116430"], ["updated_at", "2018-12-06 16:31:33.116430"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hYBqdED4Z0pwUFClCIJNiuj6geARhP322gDDdUjOrk.p7rZdzhJCm"], ["created_at", "2018-12-06 16:31:33.125351"], ["updated_at", "2018-12-06 16:31:33.125351"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:33.145536"], ["updated_at", "2018-12-06 16:31:33.145536"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3410], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4192], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4192], ["room_id", 3410], ["created_at", "2018-12-06 16:31:33.191415"], ["updated_at", "2018-12-06 16:31:33.191415"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"3057"}
Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3057], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3410], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4192], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.4ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.5ms)

UserMailer#status_notification: processed outbound mail in 434.4ms Sent mail to 123@123.com (13.1ms) Date: Thu, 06 Dec 2018 14:31:33 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c094ee5a08d7_24bf792f20298f0@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c094ee59e642_24bf792f202972e";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c094ee59e642_24bf792f202972e Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c094ee59e642_24bf792f202972e Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c094ee59e642_24bf792f202972e–

Completed 302 Found in 460ms (ActiveRecord: 2.6ms)

 (0.5ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vXXIAH.2p/pCaeMKuL6V/O9QYoC3xYoOWOjaT0KSPNNsQOwIE6RFK"], ["created_at", "2018-12-06 16:31:33.673920"], ["updated_at", "2018-12-06 16:31:33.673920"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wi0cI6gfQGmVbqhTGQNBQuSZ9IDSsCpa3b75Wka73BzDa1/BqxRzm"], ["created_at", "2018-12-06 16:31:33.682242"], ["updated_at", "2018-12-06 16:31:33.682242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:33.686311"], ["updated_at", "2018-12-06 16:31:33.686311"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3411], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4194], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4194], ["room_id", 3411], ["created_at", "2018-12-06 16:31:33.694670"], ["updated_at", "2018-12-06 16:31:33.694670"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"3058"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3058], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3411], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4194], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-06 16:31:33.706857"], ["id", 3058]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.3ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.2ms)

UserMailer#status_notification: processed outbound mail in 6.9ms Sent mail to 123@123.com (6.1ms) Date: Thu, 06 Dec 2018 14:31:33 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c094ee5b00e7_24bf792f20300a8@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c094ee5aee54_24bf792f20299d7";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c094ee5aee54_24bf792f20299d7 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c094ee5aee54_24bf792f20299d7 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c094ee5aee54_24bf792f20299d7–

Completed 302 Found in 26ms (ActiveRecord: 2.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l01XutO6YhIVp/PkjpJX/OaBpHKfYBWLa8n7k2KZuGRGif04ZCRNW"], ["created_at", "2018-12-06 16:31:33.734616"], ["updated_at", "2018-12-06 16:31:33.734616"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$D4.TBrEmX2XnoJ0mKXkVae2uhdBuBp48X.7UecU/GqYVLKwu6W0u6"], ["created_at", "2018-12-06 16:31:33.742613"], ["updated_at", "2018-12-06 16:31:33.742613"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:33.746739"], ["updated_at", "2018-12-06 16:31:33.746739"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3412], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4196], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4196], ["room_id", 3412], ["created_at", "2018-12-06 16:31:33.755294"], ["updated_at", "2018-12-06 16:31:33.755294"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1bryD8vwaeN/RzdUqZjD.uZHjB0wV.9CMEeoFtogwY7sjFyL8iiNq"], ["created_at", "2018-12-06 16:31:33.771454"], ["updated_at", "2018-12-06 16:31:33.771454"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lOjlzTKFtP75ty7geUgri.Hl4cOKa4Ciz5Yg7Jrlr7P2lJN4SSMoG"], ["created_at", "2018-12-06 16:31:33.778890"], ["updated_at", "2018-12-06 16:31:33.778890"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:33.782590"], ["updated_at", "2018-12-06 16:31:33.782590"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3413], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4198], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4198], ["room_id", 3413], ["created_at", "2018-12-06 16:31:33.790695"], ["updated_at", "2018-12-06 16:31:33.790695"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3060], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$ZTrjy9hxG9KNNsMUI5JnUOjJTISLHb9VvY2IE/xspfDNYtYbzY5rm"], ["created_at", "2018-12-06 16:31:33.803349"], ["updated_at", "2018-12-06 16:31:33.803349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"4199"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "0q3J-qlChNdIy28NkaXxlw"], ["updated_at", "2018-12-06 16:31:33.811684"], ["id", 4199]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-06 16:31:33.815413"], ["reset_sent_at", "2018-12-06 16:31:33.814752"], ["id", 4199]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.5ms)

UserMailer#password_reset: processed outbound mail in 11.8ms Sent mail to teste@unb.com.br (5.5ms) Date: Thu, 06 Dec 2018 14:31:33 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c094ee5cb1df_24bf792f203034b@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c094ee5ca2dd_24bf792f20302de";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c094ee5ca2dd_24bf792f20302de Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/0q3J-qlChNdIy28NkaXxlw/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c094ee5ca2dd_24bf792f20302de Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/0q3J-qlChNdIy28NkaXxlw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c094ee5ca2dd_24bf792f20302de–

Redirected to test.host/login Completed 302 Found in 28ms (ActiveRecord: 2.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$5hHWHSGKhu40aAGzQmrhWuAvP5t25JqBxQVhnFxkZIhXGVWrGMtOW"], ["created_at", "2018-12-06 16:31:33.845035"], ["updated_at", "2018-12-06 16:31:33.845035"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.6ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 6.7ms

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$R70IIChjzPO2RMlgKsoE8eCnq8GbVhJJsrReaC0pmp1K/..KVpgj."], ["created_at", "2018-12-06 16:31:33.867375"], ["updated_at", "2018-12-06 16:31:33.867375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4201"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$jLtRhMLzIqhPrivaL1Advenp2k9vTo9MQR2QQQyH9.GjLOU0hfnIm"], ["updated_at", "2018-12-06 16:31:33.877013"], ["id", 4201]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 1.9ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$82HABxTM.AnNBa7k14WAdO6o.BhnhwxLa2aKZ6.OHayRvqx.JE.ZG"], ["created_at", "2018-12-06 16:31:33.890875"], ["updated_at", "2018-12-06 16:31:33.890875"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"4202"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$XUNL9KdrEW/r.RDZSfNSK.toVXca4eiyusK1nHlt5wbGBoadv3OFC"], ["created_at", "2018-12-06 16:31:33.911275"], ["updated_at", "2018-12-06 16:31:33.911275"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4203"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.5ms)

Completed 200 OK in 19ms (Views: 2.4ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$H.7Zily/.deKoEmgk96Jw.VnFwVxDqi8z3xN3QLUaSnhYDeei8/ze"], ["created_at", "2018-12-06 16:31:33.943409"], ["updated_at", "2018-12-06 16:31:33.943409"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4204"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$u9/NbmzUqUF57ovaGQTF7eqaCkBEwwZw5kRkkP1spyjlYtl3o6SvC"], ["created_at", "2018-12-06 16:31:33.964270"], ["updated_at", "2018-12-06 16:31:33.964270"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4205"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Xiw84Q4od/GMNjRZYBsCdOBhejecqvUykf1X/A4wCodbb/4bXGegW"], ["created_at", "2018-12-06 16:31:34.005229"], ["updated_at", "2018-12-06 16:31:34.005229"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.6ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.4ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RlQ69cShdkUAB/u2DkkdPuGOPGqBpWxNxw5GIvp8Xec7zk320upqu"], ["created_at", "2018-12-06 16:31:34.024586"], ["updated_at", "2018-12-06 16:31:34.024586"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.8ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JotjMoA8FyqdRBurr9VivePscr0LvmGObsw0tVSPL70k0qsxGG1DK"], ["created_at", "2018-12-06 16:31:34.045767"], ["updated_at", "2018-12-06 16:31:34.045767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.050180"], ["updated_at", "2018-12-06 16:31:34.050180"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3414], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4208], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4208], ["room_id", 3414], ["created_at", "2018-12-06 16:31:34.058963"], ["updated_at", "2018-12-06 16:31:34.058963"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8FH.Wh68ukl/j3dHQdDa3eqGu6W6xR4KkjhMx3PjQ48C/Hl.YYN3m"], ["created_at", "2018-12-06 16:31:34.076739"], ["updated_at", "2018-12-06 16:31:34.076739"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.081629"], ["updated_at", "2018-12-06 16:31:34.081629"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3415], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4209], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4209], ["room_id", 3415], ["created_at", "2018-12-06 16:31:34.092252"], ["updated_at", "2018-12-06 16:31:34.092252"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 3.8ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$y82mYpFJ2s.fZHCLNaIEuOM2nDmvugChdPjTHX7Al7duAuyb7Nr0C"], ["created_at", "2018-12-06 16:31:34.151087"], ["updated_at", "2018-12-06 16:31:34.151087"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.155457"], ["updated_at", "2018-12-06 16:31:34.155457"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 14:31:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:34.168389"], ["last_sign_in_at", "2018-12-06 16:31:34.168389"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:34.169440"], ["id", 4210]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3416"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3416], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4210], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4210], ["room_id", 3416], ["created_at", "2018-12-06 16:31:34.186438"], ["updated_at", "2018-12-06 16:31:34.186438"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3416], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Jgx166mUUL4hV1J8R7XjB.IanmBljo/vK4bYowPXHG6Q9vXLQRD5m"], ["created_at", "2018-12-06 16:31:34.201373"], ["updated_at", "2018-12-06 16:31:34.201373"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.205370"], ["updated_at", "2018-12-06 16:31:34.205370"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 14:31:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:34.210664"], ["last_sign_in_at", "2018-12-06 16:31:34.210664"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:34.211651"], ["id", 4211]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3417"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3417], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4211], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4211], ["room_id", 3417], ["created_at", "2018-12-06 16:31:34.226033"], ["updated_at", "2018-12-06 16:31:34.226033"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$N32jNlEFMFMg1J/6nfEKNe.AzTsP9hDn2aqyBvokTss8K1QmM8Ula"], ["created_at", "2018-12-06 16:31:34.239890"], ["updated_at", "2018-12-06 16:31:34.239890"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.244178"], ["updated_at", "2018-12-06 16:31:34.244178"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 14:31:34 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:34.249594"], ["last_sign_in_at", "2018-12-06 16:31:34.249594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:34.250689"], ["id", 4212]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3418", "user_id"=>"4212"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3418], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4212], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4212], ["room_id", 3418], ["created_at", "2018-12-06 16:31:34.263046"], ["updated_at", "2018-12-06 16:31:34.263046"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 14:31:34 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3418", "user_id"=>"4212"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4212], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3418], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4212], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4212], ["room_id", 3418], ["created_at", "2018-12-06 16:31:34.279589"], ["updated_at", "2018-12-06 16:31:34.279589"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VufhxD.P7MOUeG/4N.ZgLu.r/mIMcLlC7ZMXODhrb.m0B2mDID5ci"], ["created_at", "2018-12-06 16:31:34.292019"], ["updated_at", "2018-12-06 16:31:34.292019"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.296023"], ["updated_at", "2018-12-06 16:31:34.296023"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 14:31:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:34.301185"], ["last_sign_in_at", "2018-12-06 16:31:34.301185"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:34.302151"], ["id", 4213]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3419", "user_id"=>"4213"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3419], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4213], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4213], ["room_id", 3419], ["created_at", "2018-12-06 16:31:34.312881"], ["updated_at", "2018-12-06 16:31:34.312881"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 2.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 14:31:34 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3419", "user_id"=>"4213"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4213], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3419], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4213], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4213], ["room_id", 3419], ["created_at", "2018-12-06 16:31:34.328155"], ["updated_at", "2018-12-06 16:31:34.328155"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.8ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3419], ["user_id", 4213], ["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qYdaFoQhjeTsHAtuSpPhFer8JkF0u/bxDDejzJ87ygOg18OBE.yWa"], ["created_at", "2018-12-06 16:31:34.342565"], ["updated_at", "2018-12-06 16:31:34.342565"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.347025"], ["updated_at", "2018-12-06 16:31:34.347025"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 14:31:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:34.352700"], ["last_sign_in_at", "2018-12-06 16:31:34.352700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:34.353644"], ["id", 4214]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3420", "user_id"=>"4214"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3420], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4214], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4214], ["room_id", 3420], ["created_at", "2018-12-06 16:31:34.365535"], ["updated_at", "2018-12-06 16:31:34.365535"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 14:31:34 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3420", "user_id"=>"4214"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4214], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3420], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4214], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4214], ["room_id", 3420], ["created_at", "2018-12-06 16:31:34.382256"], ["updated_at", "2018-12-06 16:31:34.382256"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.5ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3420], ["user_id", 4214], ["status", 1], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1glwQMpQ3TapNHG0kQwqC.MD.iHO3BmsAX.o1dCopjmoPKmg8.tmG"], ["created_at", "2018-12-06 16:31:34.396762"], ["updated_at", "2018-12-06 16:31:34.396762"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.409799"], ["updated_at", "2018-12-06 16:31:34.409799"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 14:31:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:34.415145"], ["last_sign_in_at", "2018-12-06 16:31:34.415145"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:34.416199"], ["id", 4215]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3421"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3421], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vYLP0c00fsxV4Z3nhYpmr.1.ftdbJ8TUPYOheefpnmuF2GBsQejaq"], ["created_at", "2018-12-06 16:31:34.434111"], ["updated_at", "2018-12-06 16:31:34.434111"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.438756"], ["updated_at", "2018-12-06 16:31:34.438756"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 14:31:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:34.443884"], ["last_sign_in_at", "2018-12-06 16:31:34.443884"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:34.444981"], ["id", 4216]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3422"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IcbPfWYTZ6.F2ZxVv.1LSeqVoqpLSLHBFUSyJjtOWXJcjY04yfZOW"], ["created_at", "2018-12-06 16:31:34.463800"], ["updated_at", "2018-12-06 16:31:34.463800"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.468727"], ["updated_at", "2018-12-06 16:31:34.468727"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3423], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4217], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4217], ["room_id", 3423], ["created_at", "2018-12-06 16:31:34.476596"], ["updated_at", "2018-12-06 16:31:34.476596"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3423” for 127.0.0.1 at 2018-12-06 14:31:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:34.481116"], ["last_sign_in_at", "2018-12-06 16:31:34.481116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:34.482257"], ["id", 4217]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3423"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3423], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3423')
Rendered appointments/show.html.erb within layouts/application (14.0ms)
Rendered layouts/_header-user.html.erb (3.0ms)

Completed 200 OK in 236ms (Views: 231.1ms | ActiveRecord: 1.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5G4c4Log8saTQaF5IFy5peqB7EWw.xqyWoLpMfb.06n7xU2HiEQPS"], ["created_at", "2018-12-06 16:31:34.733881"], ["updated_at", "2018-12-06 16:31:34.733881"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.739625"], ["updated_at", "2018-12-06 16:31:34.739625"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3424], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4218], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4218], ["room_id", 3424], ["created_at", "2018-12-06 16:31:34.748776"], ["updated_at", "2018-12-06 16:31:34.748776"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3072/edit” for 127.0.0.1 at 2018-12-06 14:31:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:34.753900"], ["last_sign_in_at", "2018-12-06 16:31:34.753900"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:34.755152"], ["id", 4218]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"3072"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3072], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 13ms (Views: 10.0ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AWCe5jnQcFFzaMGq8X1ThuJWuDQuqLxNXqUS5bf5ubmHWwdxkU1vC"], ["created_at", "2018-12-06 16:31:34.784087"], ["updated_at", "2018-12-06 16:31:34.784087"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 14:31:34 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:34.790806"], ["last_sign_in_at", "2018-12-06 16:31:34.790806"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:34.792300"], ["id", 4219]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Bg4xipKWRuQtko4qHKfEsuSzTNqFgfJ2wRLnBYI3jbM/OC4LjQWIG"], ["created_at", "2018-12-06 16:31:34.820052"], ["updated_at", "2018-12-06 16:31:34.820052"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.825304"], ["updated_at", "2018-12-06 16:31:34.825304"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3425], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4220], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4220], ["room_id", 3425], ["created_at", "2018-12-06 16:31:34.834180"], ["updated_at", "2018-12-06 16:31:34.834180"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3425], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4220], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4220], ["room_id", 3425], ["created_at", "2018-12-06 16:31:34.842869"], ["updated_at", "2018-12-06 16:31:34.842869"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 14:31:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:34.847328"], ["last_sign_in_at", "2018-12-06 16:31:34.847328"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:34.848367"], ["id", 4220]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4220]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.0ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 21ms (Views: 10.8ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6BYbdGhprLJXdSbRs3lvOOvaxCr6lG/IClSF7UgnTTZbVZUCqYvZ6"], ["created_at", "2018-12-06 16:31:34.884498"], ["updated_at", "2018-12-06 16:31:34.884498"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.888947"], ["updated_at", "2018-12-06 16:31:34.888947"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3426], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4221], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4221], ["room_id", 3426], ["created_at", "2018-12-06 16:31:34.897177"], ["updated_at", "2018-12-06 16:31:34.897177"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3426], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4221], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4221], ["room_id", 3426], ["created_at", "2018-12-06 16:31:34.905673"], ["updated_at", "2018-12-06 16:31:34.905673"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 14:31:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:34.910260"], ["last_sign_in_at", "2018-12-06 16:31:34.910260"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:34.911324"], ["id", 4221]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4221]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AEj6HOopbwXipr0.hvBjmeJ2X7m45C9axTr5bc63dsgMQeSwd5umi"], ["created_at", "2018-12-06 16:31:34.936055"], ["updated_at", "2018-12-06 16:31:34.936055"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.941020"], ["updated_at", "2018-12-06 16:31:34.941020"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3427], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4222], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4222], ["room_id", 3427], ["created_at", "2018-12-06 16:31:34.949532"], ["updated_at", "2018-12-06 16:31:34.949532"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/3077” for 127.0.0.1 at 2018-12-06 14:31:34 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:34.953995"], ["last_sign_in_at", "2018-12-06 16:31:34.953995"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:34.955029"], ["id", 4222]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3077"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3077], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3077]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ff/GhRjc8eR9zrvE5m4/Ouocp1TDJ/IkR96Y88e0PMVboVv3i4Ady"], ["created_at", "2018-12-06 16:31:34.980528"], ["updated_at", "2018-12-06 16:31:34.980528"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:34.985174"], ["updated_at", "2018-12-06 16:31:34.985174"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nYqHU/QsSqMEek0bmwbAp.fcyDWtItLw9a3Mc8Bdz29cnPU/2w/3u"], ["created_at", "2018-12-06 16:31:34.992859"], ["updated_at", "2018-12-06 16:31:34.992859"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3428], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4224], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4224], ["room_id", 3428], ["created_at", "2018-12-06 16:31:35.001455"], ["updated_at", "2018-12-06 16:31:35.001455"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3078” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.006701"], ["last_sign_in_at", "2018-12-06 16:31:35.006701"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.007883"], ["id", 4223]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3078"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3078], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3428], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4224], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.7ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/ndjkmoQUp2t6K614nkMfuQsu5QdSzWjwq9gTqI1D1ll6qHI1MdnK"], ["created_at", "2018-12-06 16:31:35.032940"], ["updated_at", "2018-12-06 16:31:35.032940"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.037119"], ["updated_at", "2018-12-06 16:31:35.037119"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mJAujS2MrUm/mtIdm3epp.phhegsO/47niCCa47Hyh5iNaShgx1X."], ["created_at", "2018-12-06 16:31:35.044453"], ["updated_at", "2018-12-06 16:31:35.044453"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3429], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4226], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4226], ["room_id", 3429], ["created_at", "2018-12-06 16:31:35.052666"], ["updated_at", "2018-12-06 16:31:35.052666"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3079” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.057725"], ["last_sign_in_at", "2018-12-06 16:31:35.057725"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.058822"], ["id", 4225]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3079"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3079], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3429], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4226], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dgcCvkdx3yjzIhnYriA6xeqCaip2B3rpcbC1OlxsL4hyHGrk2p6wC"], ["created_at", "2018-12-06 16:31:35.081282"], ["updated_at", "2018-12-06 16:31:35.081282"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.085503"], ["updated_at", "2018-12-06 16:31:35.085503"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$od4FoczUftEIhxPSPraas.hzMj4cmP5Ljn1/m1E9yFTHofmdGGnLu"], ["created_at", "2018-12-06 16:31:35.093117"], ["updated_at", "2018-12-06 16:31:35.093117"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3430], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4228], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4228], ["room_id", 3430], ["created_at", "2018-12-06 16:31:35.101085"], ["updated_at", "2018-12-06 16:31:35.101085"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3080” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.106382"], ["last_sign_in_at", "2018-12-06 16:31:35.106382"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.107322"], ["id", 4227]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"3080"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3080], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3430], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4228], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-06 16:31:35.118013"], ["id", 3080]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (5.9ms) Date: Thu, 06 Dec 2018 14:31:35 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c094ee71f459_24bf792f203104f@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c094ee71e52a_24bf792f2030998";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c094ee71e52a_24bf792f2030998 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c094ee71e52a_24bf792f2030998 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c094ee71e52a_24bf792f2030998–

Completed 302 Found in 20ms (ActiveRecord: 1.9ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FFTQH1VS9Dr2KOHRZdFinOe7MhaDYiFEr8Gaqq0jZErij4lIfFV66"], ["created_at", "2018-12-06 16:31:35.142159"], ["updated_at", "2018-12-06 16:31:35.142159"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.145878"], ["updated_at", "2018-12-06 16:31:35.145878"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$saD0eAphUgJ/qb.eeiM.WOXxKYuwOU1itH.rJ0CnrfUzk4qbBigla"], ["created_at", "2018-12-06 16:31:35.153289"], ["updated_at", "2018-12-06 16:31:35.153289"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3431], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4230], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4230], ["room_id", 3431], ["created_at", "2018-12-06 16:31:35.161241"], ["updated_at", "2018-12-06 16:31:35.161241"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-06 16:31:35.166176"], ["id", 3081]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3431], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4230], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4230], ["room_id", 3431], ["created_at", "2018-12-06 16:31:35.175385"], ["updated_at", "2018-12-06 16:31:35.175385"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-06 16:31:35.179641"], ["id", 3082]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.183963"], ["last_sign_in_at", "2018-12-06 16:31:35.183963"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.184928"], ["id", 4229]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4230], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3431], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4230], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3431], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.2ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 2.1ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mWViPPzMbnsiWLUKt0dlG.LmBdvn/kP3oZx86OnFTHOj1QmZWSBya"], ["created_at", "2018-12-06 16:31:35.216935"], ["updated_at", "2018-12-06 16:31:35.216935"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.221310"], ["updated_at", "2018-12-06 16:31:35.221310"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4jODR1IUOQE4XWdbxhZH..Xskk0k5AVkM0B0/guUvedz5Sv8Hd9WO"], ["created_at", "2018-12-06 16:31:35.229352"], ["updated_at", "2018-12-06 16:31:35.229352"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3432], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4232], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4232], ["room_id", 3432], ["created_at", "2018-12-06 16:31:35.237922"], ["updated_at", "2018-12-06 16:31:35.237922"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-06 16:31:35.242259"], ["id", 3083]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3432], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4232], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4232], ["room_id", 3432], ["created_at", "2018-12-06 16:31:35.250045"], ["updated_at", "2018-12-06 16:31:35.250045"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-06 16:31:35.253898"], ["id", 3084]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.257817"], ["last_sign_in_at", "2018-12-06 16:31:35.257817"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.258874"], ["id", 4231]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4232], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3432], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4232], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3432], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.2ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 2.0ms)

 (0.6ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rjgTpd.2F0XQSg/sO/xwVu6zyZicuacWXTy.JJjuTNltgX1eZYPC."], ["created_at", "2018-12-06 16:31:35.302078"], ["updated_at", "2018-12-06 16:31:35.302078"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.306983"], ["last_sign_in_at", "2018-12-06 16:31:35.306983"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.308095"], ["id", 4233]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (6.5ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DCVJLGu1tDZGj75eoBm7JuXJPnN.hVwO8UPlLE4G7BsJ9wNHz3zNG"], ["created_at", "2018-12-06 16:31:35.338406"], ["updated_at", "2018-12-06 16:31:35.338406"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.342649"], ["last_sign_in_at", "2018-12-06 16:31:35.342649"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.343622"], ["id", 4234]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$A2xvb3OtmnmQX9SFkgsVp.XJuDBaI.5Dz0Re2wEUfR3Ir6h6ZvAfa"], ["created_at", "2018-12-06 16:31:35.358788"], ["updated_at", "2018-12-06 16:31:35.358788"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.363090"], ["last_sign_in_at", "2018-12-06 16:31:35.363090"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.364045"], ["id", 4235]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HBvAxuKi6S0pAz/kbcfYGOPFu9HCDqCkMfJ9IsjyBUB1wFY8AjI.i"], ["created_at", "2018-12-06 16:31:35.386045"], ["updated_at", "2018-12-06 16:31:35.386045"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.390299"], ["last_sign_in_at", "2018-12-06 16:31:35.390299"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.391284"], ["id", 4236]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 14:31:35 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zcDZPAIQtXr1LV9Oo3TFe.N9NwsmeyHimGQ7snKb0IvETircIg0Xi"], ["created_at", "2018-12-06 16:31:35.422580"], ["updated_at", "2018-12-06 16:31:35.422580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.426946"], ["updated_at", "2018-12-06 16:31:35.426946"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3433” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.430776"], ["last_sign_in_at", "2018-12-06 16:31:35.430776"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.431776"], ["id", 4237]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3433"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3433], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BdrcE80CqHuFpsCaruTvluVzamxIo6dvihEt8w/vwsWZYHc2R1y.S"], ["created_at", "2018-12-06 16:31:35.457495"], ["updated_at", "2018-12-06 16:31:35.457495"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.462268"], ["updated_at", "2018-12-06 16:31:35.462268"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3434” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.466150"], ["last_sign_in_at", "2018-12-06 16:31:35.466150"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.467200"], ["id", 4238]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3434"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3434], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.483472"], ["updated_at", "2018-12-06 16:31:35.483472"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3435” for 127.0.0.1 at 2018-12-06 14:31:35 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3435"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VsTBqRDOSppaWxhNqnQnTeDUPi08MthH4f0T2vBXMtMm5LWozu/oO"], ["created_at", "2018-12-06 16:31:35.499311"], ["updated_at", "2018-12-06 16:31:35.499311"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.503786"], ["updated_at", "2018-12-06 16:31:35.503786"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3436” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.507768"], ["last_sign_in_at", "2018-12-06 16:31:35.507768"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.508775"], ["id", 4239]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3436"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.529066"], ["updated_at", "2018-12-06 16:31:35.529066"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3437” for 127.0.0.1 at 2018-12-06 14:31:35 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3437"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f96.XZ39ktipvoxyflTU1OBEbwoD00quEPiDzZit4GqqqsBDNe5w."], ["created_at", "2018-12-06 16:31:35.543831"], ["updated_at", "2018-12-06 16:31:35.543831"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.548272"], ["updated_at", "2018-12-06 16:31:35.548272"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3438/edit” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.552234"], ["last_sign_in_at", "2018-12-06 16:31:35.552234"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.553215"], ["id", 4240]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3438"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3438], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Y8GgrOdhgPAhz7Zv1LHqmOpvJ5whzESuxd9evoOinc8A7zfS.Tpfm"], ["created_at", "2018-12-06 16:31:35.579124"], ["updated_at", "2018-12-06 16:31:35.579124"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.583174"], ["updated_at", "2018-12-06 16:31:35.583174"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3439/edit” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.587043"], ["last_sign_in_at", "2018-12-06 16:31:35.587043"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.588056"], ["id", 4241]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3439"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3439], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.607479"], ["updated_at", "2018-12-06 16:31:35.607479"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3440” for 127.0.0.1 at 2018-12-06 14:31:35 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3440"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZQsiaziSeS32HDRw6UUkP.g.P0eqX3SM2L3XOMdwGkpUK.9rZWdse"], ["created_at", "2018-12-06 16:31:35.621911"], ["updated_at", "2018-12-06 16:31:35.621911"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.627233"], ["last_sign_in_at", "2018-12-06 16:31:35.627233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.628533"], ["id", 4242]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.634960"], ["updated_at", "2018-12-06 16:31:35.634960"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V/.c2xx1hhU8orajVHXw9utQwdQF4llcWwPW1.BhgJee2H65tkjvC"], ["created_at", "2018-12-06 16:31:35.649339"], ["updated_at", "2018-12-06 16:31:35.649339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.654628"], ["last_sign_in_at", "2018-12-06 16:31:35.654628"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.655652"], ["id", 4243]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.662600"], ["updated_at", "2018-12-06 16:31:35.662600"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fBfZSsf8LKOrbhJOSIht4eKLUI88DIuHex5o50v9F2oogh3JHhUwi"], ["created_at", "2018-12-06 16:31:35.674982"], ["updated_at", "2018-12-06 16:31:35.674982"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.680160"], ["last_sign_in_at", "2018-12-06 16:31:35.680160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.681192"], ["id", 4244]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gTLZXX8gPdkDdcBnuaMsausNW/mhUsu24LI0.e2NwHvm.HU0BpViy"], ["created_at", "2018-12-06 16:31:35.700629"], ["updated_at", "2018-12-06 16:31:35.700629"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.705896"], ["last_sign_in_at", "2018-12-06 16:31:35.705896"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.707096"], ["id", 4245]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nLT6niDVwlqMgjZDn95wuuwVh8hwKCb1S.YWWj7l9rbzf6dDC8qhy"], ["created_at", "2018-12-06 16:31:35.725085"], ["updated_at", "2018-12-06 16:31:35.725085"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.731042"], ["last_sign_in_at", "2018-12-06 16:31:35.731042"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.732097"], ["id", 4246]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n/hxckvnzvgscYu1g4Sqxec2uvKGlHPIh4c1EgJdPauPif5.GwsdS"], ["created_at", "2018-12-06 16:31:35.747178"], ["updated_at", "2018-12-06 16:31:35.747178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.751395"], ["updated_at", "2018-12-06 16:31:35.751395"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3443” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.756058"], ["last_sign_in_at", "2018-12-06 16:31:35.756058"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.757101"], ["id", 4247]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3443"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3443], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-06 16:31:35.767966"], ["id", 3443]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3443 Completed 302 Found in 9ms (ActiveRecord: 1.9ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3GR7XpvltfxdY3HAHhg6V.2yBlFG.LUSj0pFKQNurjEwKuXMB7PE6"], ["created_at", "2018-12-06 16:31:35.783669"], ["updated_at", "2018-12-06 16:31:35.783669"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.788199"], ["updated_at", "2018-12-06 16:31:35.788199"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3444” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.793264"], ["last_sign_in_at", "2018-12-06 16:31:35.793264"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.794520"], ["id", 4248]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3444"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3444], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-06 16:31:35.802468"], ["id", 3444]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3444 Completed 302 Found in 7ms (ActiveRecord: 1.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LOUPAK2YZxfCMlWiTppeOeWWtfUnF97bEKAb089oKdMDZq0KCcXQu"], ["created_at", "2018-12-06 16:31:35.818557"], ["updated_at", "2018-12-06 16:31:35.818557"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.823420"], ["updated_at", "2018-12-06 16:31:35.823420"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3445” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.828766"], ["last_sign_in_at", "2018-12-06 16:31:35.828766"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.829858"], ["id", 4249]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3445"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3445], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 1.0ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yRm6a3IU6E/frlsMkD2zuu1HzyOnzgpvDl6.dOa3xRcqgHVKA3D3W"], ["created_at", "2018-12-06 16:31:35.857481"], ["updated_at", "2018-12-06 16:31:35.857481"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.862614"], ["updated_at", "2018-12-06 16:31:35.862614"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3446” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.867394"], ["last_sign_in_at", "2018-12-06 16:31:35.867394"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.868490"], ["id", 4250]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3446"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3446], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 1.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jSeNhmdgNU8I9kzdVGPDyuLBfw9q0CzGltaqWTzLWL5IAHnalKS1a"], ["created_at", "2018-12-06 16:31:35.896298"], ["updated_at", "2018-12-06 16:31:35.896298"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.901497"], ["last_sign_in_at", "2018-12-06 16:31:35.901497"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.902606"], ["id", 4251]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U9hRiLKfLS6vFWaYNJUzTOAjFaAYQy8p0iu16q0a7EqIKkbKcpFv2"], ["created_at", "2018-12-06 16:31:35.920092"], ["updated_at", "2018-12-06 16:31:35.920092"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.924733"], ["updated_at", "2018-12-06 16:31:35.924733"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3447” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.929104"], ["last_sign_in_at", "2018-12-06 16:31:35.929104"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.930052"], ["id", 4252]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3447"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3447], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3447]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tb.npJJbZ8.i5pefavBajuYJNcbf8oCW50/IvjCAao8dmX92FAlvK"], ["created_at", "2018-12-06 16:31:35.949928"], ["updated_at", "2018-12-06 16:31:35.949928"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.954337"], ["updated_at", "2018-12-06 16:31:35.954337"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3448” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.958988"], ["last_sign_in_at", "2018-12-06 16:31:35.958988"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.960150"], ["id", 4253]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3448"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3448], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3448]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PqDKl1o0tvfR8ETWfHRPo.ODEJab0z0f1ANnzpT7zX8ids7s/wQU."], ["created_at", "2018-12-06 16:31:35.979309"], ["updated_at", "2018-12-06 16:31:35.979309"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:35.983822"], ["updated_at", "2018-12-06 16:31:35.983822"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3449” for 127.0.0.1 at 2018-12-06 14:31:35 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:35.987688"], ["last_sign_in_at", "2018-12-06 16:31:35.987688"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:35.988656"], ["id", 4254]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3449"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$g8AWNtE8jEuyP01gz/mkaecOyueR/nJaPauT6EDEt6iby..HkoxZi"], ["created_at", "2018-12-06 16:31:36.005207"], ["updated_at", "2018-12-06 16:31:36.005207"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:36.009283"], ["updated_at", "2018-12-06 16:31:36.009283"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3450” for 127.0.0.1 at 2018-12-06 14:31:36 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:36.012910"], ["last_sign_in_at", "2018-12-06 16:31:36.012910"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:36.013847"], ["id", 4255]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3450"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EjeoNgUsKBP6nDpJUBw/eu08eIbBmJSvsPgFXyYeO49WudV1TmrCC"], ["created_at", "2018-12-06 16:31:36.028820"], ["updated_at", "2018-12-06 16:31:36.028820"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 14:31:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:36.033267"], ["last_sign_in_at", "2018-12-06 16:31:36.033267"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:36.034268"], ["id", 4256]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VwObtQU5jdIqlDvoBU7SUecHLL83.T1Z8YAzUrsT8g9c6XA/HTzPW"], ["created_at", "2018-12-06 16:31:36.060196"], ["updated_at", "2018-12-06 16:31:36.060196"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:36.064153"], ["updated_at", "2018-12-06 16:31:36.064153"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:36.067723"], ["updated_at", "2018-12-06 16:31:36.067723"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:36.071400"], ["updated_at", "2018-12-06 16:31:36.071400"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3451], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4257], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4257], ["room_id", 3451], ["created_at", "2018-12-06 16:31:36.079200"], ["updated_at", "2018-12-06 16:31:36.079200"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 14:31:36 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:36.083724"], ["last_sign_in_at", "2018-12-06 16:31:36.083724"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:36.084826"], ["id", 4257]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 21ms (Views: 7.4ms | ActiveRecord: 1.8ms)

Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9rFTaRVUXhdYbeHFdI/eO.CRTO13ktqYwksxnN2eCOYhdeEjoXNq2"], ["created_at", "2018-12-06 16:31:36.123597"], ["updated_at", "2018-12-06 16:31:36.123597"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:36.127941"], ["updated_at", "2018-12-06 16:31:36.127941"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:36.131612"], ["updated_at", "2018-12-06 16:31:36.131612"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 16:31:36.134829"], ["updated_at", "2018-12-06 16:31:36.134829"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3454], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4258], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4258], ["room_id", 3454], ["created_at", "2018-12-06 16:31:36.142430"], ["updated_at", "2018-12-06 16:31:36.142430"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 14:31:36 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 16:31:36.146824"], ["last_sign_in_at", "2018-12-06 16:31:36.146824"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 16:31:36.147772"], ["id", 4258]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.5ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$lcWjcQq.GnzFJwyPZ6n3WuDHAQ7tvvi7WPpvb3LgD7hiYtlOjBZlC"], ["created_at", "2018-12-06 16:37:01.809985"], ["updated_at", "2018-12-06 16:37:01.809985"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 14:37:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.4ms)
Rendered users/sessions/new.html.erb within layouts/application (220.5ms)

Completed 200 OK in 241ms (Views: 228.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 14:37:02 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 16:37:02.106096"], ["last_sign_in_at", "2018-12-06 16:37:02.106096"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 16:37:02.107156"], ["id", 4259]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.6ms) Started GET “/” for 127.0.0.1 at 2018-12-06 14:37:02 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4259], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.8ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 16:37:02.162773"], ["updated_at", "2018-12-06 16:37:02.162773"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3457], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4259], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4259], ["room_id", 3457], ["created_at", "2018-12-06 16:37:02.214557"], ["updated_at", "2018-12-06 16:37:02.214557"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 14:37:02 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4259], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 12ms (Views: 8.2ms | ActiveRecord: 1.4ms) Started GET “/appointments/3457” for 127.0.0.1 at 2018-12-06 14:37:02 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3457"}
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3457], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3457')
Rendered appointments/show.html.erb within layouts/application (12.3ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4259], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 23ms (Views: 17.4ms | ActiveRecord: 2.3ms) Started POST “/appointments.3457” for 127.0.0.1 at 2018-12-06 14:37:02 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4259], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3457], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4259], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4259], ["room_id", 3457], ["created_at", "2018-12-06 16:37:02.296558"], ["updated_at", "2018-12-06 16:37:02.296558"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 14:37:02 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4259], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.5ms)
Rendered layouts/_header-admin.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$QovjymJTLtcGCI3X4BdlduzNmuK3LHHDAeB/HSWERfck5L/gRXMlS"], ["created_at", "2018-12-06 16:39:16.540872"], ["updated_at", "2018-12-06 16:39:16.540872"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 14:39:16 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.5ms)
Rendered users/sessions/new.html.erb within layouts/application (209.8ms)

Completed 200 OK in 230ms (Views: 218.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 14:39:16 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 16:39:16.821456"], ["last_sign_in_at", "2018-12-06 16:39:16.821456"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 16:39:16.822569"], ["id", 4260]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-06 14:39:16 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4260], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.9ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.8ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 16:39:16.875516"], ["updated_at", "2018-12-06 16:39:16.875516"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 14:39:16 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4260], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 13ms (Views: 8.4ms | ActiveRecord: 1.4ms) Started GET “/appointments/3458” for 127.0.0.1 at 2018-12-06 14:39:16 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3458"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3458], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3458')
Rendered appointments/show.html.erb within layouts/application (11.4ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4260], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 30ms (Views: 14.3ms | ActiveRecord: 4.9ms) Started POST “/appointments.3458” for 127.0.0.1 at 2018-12-06 14:39:16 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4260], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3458], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4260], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4260], ["room_id", 3458], ["created_at", "2018-12-06 16:39:16.995007"], ["updated_at", "2018-12-06 16:39:16.995007"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 38ms (ActiveRecord: 6.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 14:39:16 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4260], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.4ms)
Rendered layouts/_header-admin.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$b9OooTOv/nhkrFB.dVNcuOcKTlETyu0cEeOoAcH4krYBCNDY0wOn2"], ["created_at", "2018-12-06 16:39:17.035894"], ["updated_at", "2018-12-06 16:39:17.035894"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 14:39:17 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.0ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 14:39:17 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 16:39:17.058946"], ["last_sign_in_at", "2018-12-06 16:39:17.058946"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 16:39:17.059987"], ["id", 4261]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 14:39:17 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4261], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 16:39:17.082774"], ["updated_at", "2018-12-06 16:39:17.082774"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3459], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4261], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4261], ["room_id", 3459], ["created_at", "2018-12-06 16:39:17.094770"], ["updated_at", "2018-12-06 16:39:17.094770"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 14:39:17 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4261], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 1.2ms) Started GET “/appointments/3459” for 127.0.0.1 at 2018-12-06 14:39:17 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3459"}
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3459], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3459')
Rendered appointments/show.html.erb within layouts/application (6.9ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4261], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 2.0ms) Started POST “/appointments.3459” for 127.0.0.1 at 2018-12-06 14:39:17 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4261], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3459], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4261], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4261], ["room_id", 3459], ["created_at", "2018-12-06 16:39:17.159277"], ["updated_at", "2018-12-06 16:39:17.159277"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 14:39:17 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4261], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (1.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$PIM8PyWPccVNsZmpA5T7euN914OwsxT9BMyuD1WRfmGRQq5q6E53m"], ["created_at", "2018-12-06 16:47:03.914695"], ["updated_at", "2018-12-06 16:47:03.914695"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 14:47:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (5.3ms)

Completed 200 OK in 313ms (Views: 305.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 14:47:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (41.5ms)
Rendered users/sessions/new.html.erb within layouts/application (44.0ms)

Completed 200 OK in 52ms (Views: 50.0ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-06 14:47:04 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (1.5ms)
Rendered password_resets/new.html.erb within layouts/application (4.0ms)

Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-06 14:47:04 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.7ms)
Rendered password_resets/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 10ms (Views: 4.3ms | ActiveRecord: 1.0ms)

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$VGCdd7WF1exvoQafmTwsqutuZLpvRr/kJqiYuo/9QVhwUBwKef..2"], ["updated_at", "2018-12-06 16:47:04.374297"], ["id", 4262]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$sdwJO/5zQAomH4FqO2n.VehFQvB.gNlTInreY20epvBx.M/8PS386"], ["created_at", "2018-12-06 16:50:51.477766"], ["updated_at", "2018-12-06 16:50:51.477766"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 14:50:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.3ms)
Rendered users/sessions/new.html.erb within layouts/application (232.1ms)

Completed 200 OK in 252ms (Views: 240.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 14:50:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 16:50:51.784595"], ["last_sign_in_at", "2018-12-06 16:50:51.784595"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 16:50:51.785913"], ["id", 4263]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 14:50:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4263], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-06 16:50:51.843318"], ["updated_at", "2018-12-06 16:50:51.843318"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 14:50:51 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4263], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.8ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 15ms (Views: 8.7ms | ActiveRecord: 1.6ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 14:50:51 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (11.8ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4263], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 33ms (Views: 15.2ms | ActiveRecord: 4.9ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 14:50:51 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4263], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4263], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4263], ["room_id", 1], ["created_at", "2018-12-06 16:50:51.976750"], ["updated_at", "2018-12-06 16:50:51.976750"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 40ms (ActiveRecord: 6.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 14:50:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4263], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.5ms)
Rendered layouts/_header-admin.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$QsKJVJuo/2PrQroGmnRa8OtYNQbMzvDc2A9Gd823wMpiepubw9xyy"], ["created_at", "2018-12-06 16:50:52.013326"], ["updated_at", "2018-12-06 16:50:52.013326"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 14:50:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 14:50:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 16:50:52.038685"], ["last_sign_in_at", "2018-12-06 16:50:52.038685"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 16:50:52.039814"], ["id", 4264]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-06 14:50:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4264], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-06 16:50:52.057925"], ["updated_at", "2018-12-06 16:50:52.057925"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 14:50:52 -0200 Processing by RoomsController#index as HTML

User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4264], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 1.7ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 14:50:52 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4264], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 2.2ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 14:50:52 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4264], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4264], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4264], ["room_id", 1], ["created_at", "2018-12-06 16:50:52.116087"], ["updated_at", "2018-12-06 16:50:52.116087"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 14:50:52 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4264], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$korBO3BfX9jj/GDEZq6/AO2goDkcDJtk3hAak1T6SNPXHEuf8Rlwi"], ["created_at", "2018-12-06 16:55:59.943426"], ["updated_at", "2018-12-06 16:55:59.943426"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 14:55:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.4ms)
Rendered users/sessions/new.html.erb within layouts/application (224.2ms)

Completed 200 OK in 244ms (Views: 232.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 14:56:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 16:56:00.242246"], ["last_sign_in_at", "2018-12-06 16:56:00.242246"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 16:56:00.243434"], ["id", 4265]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 14:56:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4265], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.9ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 16:56:00.297211"], ["updated_at", "2018-12-06 16:56:00.297211"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 16:56:00.300776"], ["updated_at", "2018-12-06 16:56:00.300776"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.6ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4265], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4265], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4265], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4265], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 14:56:00 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4265], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 13ms (Views: 8.8ms | ActiveRecord: 0.8ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-06 14:56:00 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-07", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4265], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.5ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-07' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 23ms (Views: 6.4ms | ActiveRecord: 2.9ms)

 (0.6ms)  ROLLBACK
 (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$YPbeytsd7KJfV943Fz/rK.dkGWzSuahKSXCDmPKlG0siM035d0Zsu"], ["created_at", "2018-12-06 17:01:40.573272"], ["updated_at", "2018-12-06 17:01:40.573272"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 15:01:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.5ms)
Rendered users/sessions/new.html.erb within layouts/application (220.4ms)

Completed 200 OK in 240ms (Views: 228.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 15:01:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 17:01:40.869998"], ["last_sign_in_at", "2018-12-06 17:01:40.869998"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 17:01:40.871265"], ["id", 4266]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 19ms (ActiveRecord: 2.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 15:01:40 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4266], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.0ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-06 17:01:40.922506"], ["updated_at", "2018-12-06 17:01:40.922506"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-06 17:01:40.926628"], ["updated_at", "2018-12-06 17:01:40.926628"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.6ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4266], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 15:01:40 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.3ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4266], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 14ms (Views: 10.9ms | ActiveRecord: 1.8ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 15:01:41 -0200 Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.9ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4266], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 1.7ms)

 (0.6ms)  ROLLBACK
 (31.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (58.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (23.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$yb2DI48Bjgia/xQ9kOnJLeeRtjqriJW7yPBFcSk/BT1GFoNMqJwgG"], ["created_at", "2018-12-07 01:36:39.769578"], ["updated_at", "2018-12-07 01:36:39.769578"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:39 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (65.5ms)
Rendered users/sessions/new.html.erb within layouts/application (519.3ms)

Completed 200 OK in 545ms (Views: 532.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:40.454091"], ["last_sign_in_at", "2018-12-07 01:36:40.454091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:40.455143"], ["id", 4267]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4267], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.0ms)
Rendered layouts/_header-admin.html.erb (2.9ms)

Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4267], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.8ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by RoomsController#new as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4267], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.7ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 35ms (Views: 12.5ms | ActiveRecord: 6.0ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4267], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4267], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.4ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$aqfwEgT2dq7epEA75HEKd.jkI7Ax3uChZ9SGNoQhrVbnFEbUe8LOW"], ["created_at", "2018-12-07 01:36:40.583689"], ["updated_at", "2018-12-07 01:36:40.583689"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:40.609047"], ["last_sign_in_at", "2018-12-07 01:36:40.609047"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:40.609910"], ["id", 4268]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4268], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4268], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by RoomsController#new as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4268], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.8ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4268], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4268], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.3ms)

Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$nAql7QPxhsPCNRAXWsi9euXj/4G1TtrZWUFw/2qS2g/u.bNUhPPoW"], ["created_at", "2018-12-07 01:36:40.703417"], ["updated_at", "2018-12-07 01:36:40.703417"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:40.730750"], ["last_sign_in_at", "2018-12-07 01:36:40.730750"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:40.731575"], ["id", 4269]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4269], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.7ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$IE4brun2aqK28V4auw6aJ.EsNZAUB0J0UfMBLVwysHFfDmMJEhKlm"], ["created_at", "2018-12-07 01:36:40.788849"], ["updated_at", "2018-12-07 01:36:40.788849"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 4ms (ActiveRecord: 0.6ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.5ms)
Rendered users/sessions/new.html.erb within layouts/application (3.0ms)

Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$g3qHWPv1YrJLulnbgxrtF.rvhJ139E6fvmnX0TRdn5fLnRgEdh2Y6"], ["created_at", "2018-12-07 01:36:40.836830"], ["updated_at", "2018-12-07 01:36:40.836830"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:40.860671"], ["last_sign_in_at", "2018-12-07 01:36:40.860671"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:40.863260"], ["id", 4271]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 13ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4271], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.6ms)
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.9ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (43.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:36:40.887475"], ["updated_at", "2018-12-07 01:36:40.887475"], ["tipo_sala", "Auditório"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4271], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 13ms (Views: 7.2ms | ActiveRecord: 1.5ms) Started GET “/appointments/3464” for 127.0.0.1 at 2018-12-06 23:36:40 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3464"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3464], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (30.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3464')
Rendered appointments/show.html.erb within layouts/application (58.5ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4271], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 105ms (Views: 35.7ms | ActiveRecord: 33.7ms) Started POST “/appointments.3464” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4271], ["LIMIT", 1]]
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments"
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3464], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4271], ["LIMIT", 1]]
SQL (20.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4271], ["room_id", 3464], ["created_at", "2018-12-07 01:36:41.141275"], ["updated_at", "2018-12-07 01:36:41.141275"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 77ms (ActiveRecord: 26.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4271], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$8pFqfEohSL2qr47N/kbfzegL1ggBuF6fiHS9NnTxrBZxHRsfzlRu."], ["created_at", "2018-12-07 01:36:41.191446"], ["updated_at", "2018-12-07 01:36:41.191446"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.9ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.7ms)
Rendered users/sessions/new.html.erb within layouts/application (5.0ms)

Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:41.219710"], ["last_sign_in_at", "2018-12-07 01:36:41.219710"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:41.220753"], ["id", 4272]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4272], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:36:41.240582"], ["updated_at", "2018-12-07 01:36:41.240582"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3465], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4272], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4272], ["room_id", 3465], ["created_at", "2018-12-07 01:36:41.250383"], ["updated_at", "2018-12-07 01:36:41.250383"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4272], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 1.1ms) Started GET “/appointments/3465” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3465"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3465], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3465')
Rendered appointments/show.html.erb within layouts/application (7.2ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4272], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 16ms (Views: 12.0ms | ActiveRecord: 2.0ms) Started POST “/appointments.3465” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4272], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3465], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4272], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4272], ["room_id", 3465], ["created_at", "2018-12-07 01:36:41.312474"], ["updated_at", "2018-12-07 01:36:41.312474"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4272], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.6ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$tE580zpwa3iRcwHyTytsLOhAhaCgEpANxTN8XNzZGtlxoVB7K5Y3m"], ["created_at", "2018-12-07 01:36:41.342145"], ["updated_at", "2018-12-07 01:36:41.342145"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:41.369881"], ["last_sign_in_at", "2018-12-07 01:36:41.369881"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:41.370902"], ["id", 4273]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4273], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:36:41.391137"], ["updated_at", "2018-12-07 01:36:41.391137"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3466], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4273], ["LIMIT", 1]]
SQL (13.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4273], ["room_id", 3466], ["created_at", "2018-12-07 01:36:41.401413"], ["updated_at", "2018-12-07 01:36:41.401413"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4273], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4273]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.8ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 43ms (Views: 11.1ms | ActiveRecord: 1.4ms) Started DELETE “/appointments/3097” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3097"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3097], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3097]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4273], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (1.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4273]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 2.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$/nzbX1A08YPAAaqEQtJESO8eRpzIxTPV3rVPfj0HIc0u0zcXJytQu"], ["created_at", "2018-12-07 01:36:41.503782"], ["updated_at", "2018-12-07 01:36:41.503782"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:41.528613"], ["last_sign_in_at", "2018-12-07 01:36:41.528613"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:41.529570"], ["id", 4274]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4274], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 01:36:41.546180"], ["updated_at", "2018-12-07 01:36:41.546180"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3467], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4274], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["user_id", 4274], ["room_id", 3467], ["created_at", "2018-12-07 01:36:41.556088"], ["updated_at", "2018-12-07 01:36:41.556088"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4274], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4274]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 1.2ms) Started DELETE “/appointments/3098” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3098"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3098], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3098]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4274], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4274]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 1.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$vGyBjDPvhrvr.3MfPkGCkuw8ycj6.zOizY9LRUmRwJ31WtYHpZGUS"], ["created_at", "2018-12-07 01:36:41.609293"], ["updated_at", "2018-12-07 01:36:41.609293"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.2ms)
Rendered users/sessions/new.html.erb within layouts/application (4.0ms)

Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:41.639836"], ["last_sign_in_at", "2018-12-07 01:36:41.639836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:41.640925"], ["id", 4275]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4275], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.8ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-07 01:36:41.658539"], ["updated_at", "2018-12-07 01:36:41.658539"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-07 01:36:41.662134"], ["updated_at", "2018-12-07 01:36:41.662134"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4275], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (3.6ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4275], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 1.2ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4275], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$fjYG/5kR/XXtZoMA46pd2OXbwPq11gShLlvLOmhkEYiCA1NDKQc9K"], ["created_at", "2018-12-07 01:36:41.719602"], ["updated_at", "2018-12-07 01:36:41.719602"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.9ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:41.746792"], ["last_sign_in_at", "2018-12-07 01:36:41.746792"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:41.747762"], ["id", 4276]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4276], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.4ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 1.0ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.5ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4276], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 1.0ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4276], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$hXkefsxP2SGTMi3prh/Y3uqRpmnwuC2E7y0h0050RydzgMH1K8uou"], ["created_at", "2018-12-07 01:36:41.808553"], ["updated_at", "2018-12-07 01:36:41.808553"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:41.832871"], ["last_sign_in_at", "2018-12-07 01:36:41.832871"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:41.833739"], ["id", 4277]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4277], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.6ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4277], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 1.2ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$c42Tlf11q6dlrPMSnj0Qte3Tl9jIf.xWfy2ljS4ndB9d45j1d4H/q"], ["created_at", "2018-12-07 01:36:41.919629"], ["updated_at", "2018-12-07 01:36:41.919629"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:41.944822"], ["last_sign_in_at", "2018-12-07 01:36:41.944822"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:41.945802"], ["id", 4278]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4278], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.7ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:36:41.965742"], ["updated_at", "2018-12-07 01:36:41.965742"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3470], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4278], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4278], ["room_id", 3470], ["created_at", "2018-12-07 01:36:41.975036"], ["updated_at", "2018-12-07 01:36:41.975036"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:36:41 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4278], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 1.4ms) Started GET “/appointments/3470” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3470"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3470], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3470')
Rendered appointments/show.html.erb within layouts/application (7.0ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4278], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 16ms (Views: 11.7ms | ActiveRecord: 2.1ms) Started POST “/appointments.3470” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4278], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3470], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4278], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4278], ["room_id", 3470], ["created_at", "2018-12-07 01:36:42.039176"], ["updated_at", "2018-12-07 01:36:42.039176"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4278], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.6ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$LTPiXKqG5WGcXM4QwWdtHevNyujxkZUk4KmFWv/lkHOQx.O7YEGr2"], ["created_at", "2018-12-07 01:36:42.068624"], ["updated_at", "2018-12-07 01:36:42.068624"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:42.095023"], ["last_sign_in_at", "2018-12-07 01:36:42.095023"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:42.095970"], ["id", 4279]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4279], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.0ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:36:42.115225"], ["updated_at", "2018-12-07 01:36:42.115225"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3471], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4279], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4279], ["room_id", 3471], ["created_at", "2018-12-07 01:36:42.126100"], ["updated_at", "2018-12-07 01:36:42.126100"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4279], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4279]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$NBrLtgf5I1cFXyEAP0gU6O4vvQ7Rh0F/eHDuXjLRcH9TNwMpdPiNC"], ["created_at", "2018-12-07 01:36:42.161941"], ["updated_at", "2018-12-07 01:36:42.161941"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:42.186599"], ["last_sign_in_at", "2018-12-07 01:36:42.186599"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:42.187506"], ["id", 4280]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4280], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 01:36:42.204865"], ["updated_at", "2018-12-07 01:36:42.204865"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3472], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4280], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["user_id", 4280], ["room_id", 3472], ["created_at", "2018-12-07 01:36:42.214111"], ["updated_at", "2018-12-07 01:36:42.214111"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4280], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4280]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 1.3ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$d.ccAo5U7933GCuF3zRRou/EkJqxluy3WIT6Q8PaJ0AQvgDpa5MSe"], ["created_at", "2018-12-07 01:36:42.255842"], ["updated_at", "2018-12-07 01:36:42.255842"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.5ms)
Rendered users/sessions/new.html.erb within layouts/application (4.8ms)

Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:42.284702"], ["last_sign_in_at", "2018-12-07 01:36:42.284702"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:42.285915"], ["id", 4281]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4281], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (12.1ms)

Completed 200 OK in 18ms (Views: 16.1ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$qGDhGQZ/C2viG8SowNUWS.yk7b7vVdsalSTeVzyJj79QbbSyQknU2"], ["created_at", "2018-12-07 01:36:42.327729"], ["updated_at", "2018-12-07 01:36:42.327729"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:42.352981"], ["last_sign_in_at", "2018-12-07 01:36:42.352981"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:42.354057"], ["id", 4282]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4282], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:36:42.371976"], ["updated_at", "2018-12-07 01:36:42.371976"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:36:42.375350"], ["updated_at", "2018-12-07 01:36:42.375350"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4282], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 1.3ms) Started GET “/appointments/3473” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3473"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3473], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3473')
Rendered appointments/show.html.erb within layouts/application (2.8ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4282], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 1.9ms) Started POST “/appointments.3473” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4282], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3473], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4282], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4282], ["room_id", 3473], ["created_at", "2018-12-07 01:36:42.438289"], ["updated_at", "2018-12-07 01:36:42.438289"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4282], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.7ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$.u2munMEVkkbI4totRkxtOqDX91aOR65/ai.W0/wc2/kn.sTqOoFC"], ["created_at", "2018-12-07 01:36:42.466856"], ["updated_at", "2018-12-07 01:36:42.466856"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.1ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:42.491928"], ["last_sign_in_at", "2018-12-07 01:36:42.491928"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:42.492863"], ["id", 4283]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4283], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:36:42.509717"], ["updated_at", "2018-12-07 01:36:42.509717"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:36:42.512543"], ["updated_at", "2018-12-07 01:36:42.512543"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4283], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 1.3ms) Started GET “/appointments/3475” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3475"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3475], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3475')
Rendered appointments/show.html.erb within layouts/application (2.8ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4283], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 1.7ms) Started POST “/appointments.3475” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4283], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4283], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$MmOIpi36yVqA.1H5BnnQl.exdDw.Ma7XWtlMb.H8HTBOgshwFc./G"], ["created_at", "2018-12-07 01:36:42.592945"], ["updated_at", "2018-12-07 01:36:42.592945"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:42.617325"], ["last_sign_in_at", "2018-12-07 01:36:42.617325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:42.618216"], ["id", 4284]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4284], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-07 01:36:42.635406"], ["updated_at", "2018-12-07 01:36:42.635406"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4284], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.7ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4284], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 1.2ms) Started DELETE “/rooms/3477” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3477"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4284], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3477], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3477]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4284], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$RdOW8etGVBMwE19iVhixXuYWhhnl2l.KCGiaOZc5uuYBzM.UUkrmC"], ["created_at", "2018-12-07 01:36:42.701138"], ["updated_at", "2018-12-07 01:36:42.701138"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-07 01:36:42.704677"], ["updated_at", "2018-12-07 01:36:42.704677"], ["tipo_sala", "tipoTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:42.740631"], ["last_sign_in_at", "2018-12-07 01:36:42.740631"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:42.741829"], ["id", 4285]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4285], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4285], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 1.5ms) Started GET “/rooms/3478/edit” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3478"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4285], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3478], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 1.2ms) Started PATCH “/rooms/3478” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"3478"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4285], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3478], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 13ms (Views: 6.9ms | ActiveRecord: 1.5ms)

Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$umolW3wiA3cxjKbOWtT0F.5Cc/E/I1T2B.7SAjNwT1erAgle1Nf2C"], ["created_at", "2018-12-07 01:36:42.845725"], ["updated_at", "2018-12-07 01:36:42.845725"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$nq6mEP9in5gS7d7PnVkK7Of6p8ZFiE1GSwyBAfqhqOTMSxFr5OrIa"], ["created_at", "2018-12-07 01:36:42.866166"], ["updated_at", "2018-12-07 01:36:42.866166"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:42.893193"], ["last_sign_in_at", "2018-12-07 01:36:42.893193"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:42.894238"], ["id", 4287]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4287], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.6ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4287], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 1.3ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-07 01:36:42.924685"], ["updated_at", "2018-12-07 01:36:42.924685"], ["tipo_sala", "Coodernação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-07 01:36:42.927915"], ["updated_at", "2018-12-07 01:36:42.927915"], ["tipo_sala", "Predio CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-07 01:36:42.930660"], ["updated_at", "2018-12-07 01:36:42.930660"], ["tipo_sala", "Salas de Reunião"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$zA2yDdrG.TwwcguS1OJsc.pevNWyJkqXJ8D4MX9hKrXqKfpYxchiO"], ["created_at", "2018-12-07 01:36:42.967214"], ["updated_at", "2018-12-07 01:36:42.967214"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:42.992793"], ["last_sign_in_at", "2018-12-07 01:36:42.992793"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:42.993671"], ["id", 4288]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4288], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.7ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:36:43.010498"], ["updated_at", "2018-12-07 01:36:43.010498"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:36:43.013460"], ["updated_at", "2018-12-07 01:36:43.013460"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4288], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$M50LaplFG/bOnIGHtypGL.S.N.xW8uQWkAtz6ZKV8D8P156UXub.e"], ["created_at", "2018-12-07 01:36:43.052205"], ["updated_at", "2018-12-07 01:36:43.052205"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (4.1ms)

Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:43.078251"], ["last_sign_in_at", "2018-12-07 01:36:43.078251"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:43.079246"], ["id", 4289]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4289], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:36:43.098104"], ["updated_at", "2018-12-07 01:36:43.098104"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:36:43.101368"], ["updated_at", "2018-12-07 01:36:43.101368"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4289], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-admin.html.erb (11.9ms)

Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$dNsYRkP2Xhqh9w/heUDWbeLyDR9FofHSnw6lvs.hzByi9K4JnUK.K"], ["created_at", "2018-12-07 01:36:43.150209"], ["updated_at", "2018-12-07 01:36:43.150209"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:43.175160"], ["last_sign_in_at", "2018-12-07 01:36:43.175160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:43.176049"], ["id", 4290]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4290], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:36:43.194333"], ["updated_at", "2018-12-07 01:36:43.194333"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:36:43.197716"], ["updated_at", "2018-12-07 01:36:43.197716"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4290], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4290], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4290], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4290], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4290], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 0.8ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-07", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4290], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.5ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-07' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 25ms (Views: 6.4ms | ActiveRecord: 2.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$SDrIpY.Csh/h/6N75lkTJuymPr/2wD7gleaIvB9mhKz7vr0it2c8C"], ["created_at", "2018-12-07 01:36:43.302282"], ["updated_at", "2018-12-07 01:36:43.302282"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:43.327041"], ["last_sign_in_at", "2018-12-07 01:36:43.327041"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:43.328108"], ["id", 4291]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4291], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:36:43.345447"], ["updated_at", "2018-12-07 01:36:43.345447"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:36:43.348667"], ["updated_at", "2018-12-07 01:36:43.348667"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.5ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4291], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4291], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4291], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4291], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4291], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.8ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4291], ["LIMIT", 1]]

Redirected to www.example.com/search-rooms Completed 302 Found in 3ms (ActiveRecord: 0.9ms) Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4291], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$43NXp7.pyrlO5z9/ZVIkMOGtWNkKa8XvOESfcOhy0H4Cx8b.zWRFi"], ["created_at", "2018-12-07 01:36:43.429655"], ["updated_at", "2018-12-07 01:36:43.429655"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:43.465504"], ["last_sign_in_at", "2018-12-07 01:36:43.465504"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:43.466456"], ["id", 4292]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4292], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (2.3ms)
Rendered users/registrations/new.html.erb within layouts/application (5.0ms)

Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$vhFp3X7qmbKc49mxD3O4NeB77ln6nsqLZRl786i.eSijq7fSDuH6."], ["created_at", "2018-12-07 01:36:43.558264"], ["updated_at", "2018-12-07 01:36:43.558264"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:36:43.561041"], ["last_sign_in_at", "2018-12-07 01:36:43.561041"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:36:43.561792"], ["id", 4293]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 33ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4293], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$0ll.x91SEP3Hj4O247DHd.oTHtFh4H5YCqUW6xAHqw0YHgkLMFgf6"], ["created_at", "2018-12-07 01:36:43.606665"], ["updated_at", "2018-12-07 01:36:43.606665"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.1ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:43.641472"], ["last_sign_in_at", "2018-12-07 01:36:43.641472"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:43.642310"], ["id", 4294]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4294], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.8ms) Started GET “/users/4294/edit” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"4294"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4294], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 13ms (Views: 9.6ms | ActiveRecord: 0.8ms) Started PUT “/users/4294” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"4294"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4294], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4294], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 4294], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-07 01:36:43.708595"], ["id", 4294]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 16ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4294], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.9ms)

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$7Sbjl.uTG2uyuAWKMLn5EumPHYx9C2ggRHhyhuBiMgC6HJ81CZzga"], ["created_at", "2018-12-07 01:36:43.741642"], ["updated_at", "2018-12-07 01:36:43.741642"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:43.767345"], ["last_sign_in_at", "2018-12-07 01:36:43.767345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:43.768251"], ["id", 4295]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4295], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 01:36:43.785675"], ["updated_at", "2018-12-07 01:36:43.785675"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4295], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 1.3ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (2.8ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4295], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 1.8ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4295], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4295], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4295], ["room_id", 1], ["created_at", "2018-12-07 01:36:43.842454"], ["updated_at", "2018-12-07 01:36:43.842454"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4295], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$KffSK.cUmC9.uuYJ6lRE6uGRTOL6imRocpQL468m6yPp4A1GdAS8y"], ["created_at", "2018-12-07 01:36:43.868292"], ["updated_at", "2018-12-07 01:36:43.868292"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:36:43.893823"], ["last_sign_in_at", "2018-12-07 01:36:43.893823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:36:43.894792"], ["id", 4296]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4296], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 01:36:43.913701"], ["updated_at", "2018-12-07 01:36:43.913701"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4296], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 1.3ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (2.8ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4296], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 12ms (Views: 8.4ms | ActiveRecord: 1.8ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4296], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4296], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4296], ["room_id", 1], ["created_at", "2018-12-07 01:36:43.973049"], ["updated_at", "2018-12-07 01:36:43.973049"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:36:43 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4296], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$2Wrw2PSH/FOjG2QKK1kHQuOVdrIhT2qjd.JTK54pQPmtjEKF7vqwW"], ["created_at", "2018-12-07 01:36:44.010394"], ["updated_at", "2018-12-07 01:36:44.010394"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:44 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.0ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:44 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-06 23:36:44 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (1.6ms)
Rendered password_resets/new.html.erb within layouts/application (4.6ms)

Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-06 23:36:44 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.8ms)
Rendered password_resets/new.html.erb within layouts/application (2.4ms)

Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$YmAOgGKG6WmFxIvLd2W/n.EXUydBCSiRgQLLg3/DgemtgaDOKlmXS"], ["updated_at", "2018-12-07 01:36:44.080409"], ["id", 4297]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$LzYPHF9cFKwuiB6Gw5/MKOnpu1uhYalPUKRGR5RbG3DKDp0r3utA6"], ["created_at", "2018-12-07 01:36:44.096142"], ["updated_at", "2018-12-07 01:36:44.096142"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:44 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:36:44 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.1ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-06 23:36:44 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.9ms)
Rendered password_resets/new.html.erb within layouts/application (2.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-06 23:36:44 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.8ms)
Rendered password_resets/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 23:36:44 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.9ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1ageSzBQDrt7XJuVgPCuxe1xmwFqXR.RLAMTjTPL4RtZqAoihrIbu"], ["created_at", "2018-12-07 01:37:02.229542"], ["updated_at", "2018-12-07 01:37:02.229542"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xY6TCjpWclix2AyZNbCXpu./G8J5oYG1OcXChs80opI2tE3Geem2K"], ["created_at", "2018-12-07 01:37:02.237999"], ["updated_at", "2018-12-07 01:37:02.237999"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:02.258939"], ["updated_at", "2018-12-07 01:37:02.258939"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3490], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4300], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4300], ["room_id", 3490], ["created_at", "2018-12-07 01:37:02.303527"], ["updated_at", "2018-12-07 01:37:02.303527"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"3106"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3106], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3490], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4300], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.4ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.5ms)

UserMailer#status_notification: processed outbound mail in 318.4ms Sent mail to 123@123.com (13.0ms) Date: Thu, 06 Dec 2018 23:37:02 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09cebea0669_35251190f2c86461@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cebe9e3e7_35251190f2c86330";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cebe9e3e7_35251190f2c86330 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c09cebe9e3e7_35251190f2c86330 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c09cebe9e3e7_35251190f2c86330–

Completed 302 Found in 344ms (ActiveRecord: 2.3ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aX5Ebl/iTqxUu0Z5m4Oy1.PEtZp3IGEiP65RXdVDiH2WYMBpBdI2u"], ["created_at", "2018-12-07 01:37:02.677028"], ["updated_at", "2018-12-07 01:37:02.677028"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7hE9uA9Xd/GGbXtB65SEQ.YX/4twZbwoZKXwX9iVmZ0jxirp2CGBy"], ["created_at", "2018-12-07 01:37:02.686276"], ["updated_at", "2018-12-07 01:37:02.686276"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:02.690076"], ["updated_at", "2018-12-07 01:37:02.690076"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3491], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4302], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4302], ["room_id", 3491], ["created_at", "2018-12-07 01:37:02.698665"], ["updated_at", "2018-12-07 01:37:02.698665"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"3107"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3107], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3491], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4302], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:37:02.710194"], ["id", 3107]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms Sent mail to 123@123.com (6.2ms) Date: Thu, 06 Dec 2018 23:37:02 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09cebeafe9e_35251190f2c866b5@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cebeaee62_35251190f2c865ce";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cebeaee62_35251190f2c865ce Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c09cebeaee62_35251190f2c865ce Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c09cebeaee62_35251190f2c865ce–

Completed 302 Found in 22ms (ActiveRecord: 2.9ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BubMVjXxx40VXO4aPg8qpe9gJbds6Cb5AnT0/8d42enUVq3CVOldu"], ["created_at", "2018-12-07 01:37:02.733868"], ["updated_at", "2018-12-07 01:37:02.733868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5HTZqCzig9uTB9yUtgIwFeEuxpzySS8UDk6iOivLeBsUsu1zFFXjG"], ["created_at", "2018-12-07 01:37:02.741830"], ["updated_at", "2018-12-07 01:37:02.741830"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:02.745967"], ["updated_at", "2018-12-07 01:37:02.745967"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3492], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4304], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4304], ["room_id", 3492], ["created_at", "2018-12-07 01:37:02.754716"], ["updated_at", "2018-12-07 01:37:02.754716"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GNykkYZk9sjNc5E1hsB1GOoywn5fahdsY.HYBhTBYjaJixlI8Ir42"], ["created_at", "2018-12-07 01:37:02.771465"], ["updated_at", "2018-12-07 01:37:02.771465"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cj4CaqdU3mS./c7c58O/1OMUYEe0JwkQHf/UM60DEzJc6sfCHaYci"], ["created_at", "2018-12-07 01:37:02.779305"], ["updated_at", "2018-12-07 01:37:02.779305"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:02.783056"], ["updated_at", "2018-12-07 01:37:02.783056"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3493], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4306], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4306], ["room_id", 3493], ["created_at", "2018-12-07 01:37:02.791751"], ["updated_at", "2018-12-07 01:37:02.791751"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3109], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$GXWTQNTrD2sRdUnMhdgMIeW...Xq4J9MKVP2z98L100ehx/Vhoe4G"], ["created_at", "2018-12-07 01:37:02.805818"], ["updated_at", "2018-12-07 01:37:02.805818"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"4307"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "2vUHsPpLrSNnsBzx1wMfBw"], ["updated_at", "2018-12-07 01:37:02.815106"], ["id", 4307]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:37:02.819276"], ["reset_sent_at", "2018-12-07 01:37:02.818474"], ["id", 4307]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.6ms)

UserMailer#password_reset: processed outbound mail in 11.3ms Sent mail to teste@unb.com.br (6.0ms) Date: Thu, 06 Dec 2018 23:37:02 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09cebecc431_35251190f2c8695d@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cebecb2e0_35251190f2c86817";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cebecb2e0_35251190f2c86817 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/2vUHsPpLrSNnsBzx1wMfBw/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c09cebecb2e0_35251190f2c86817 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/2vUHsPpLrSNnsBzx1wMfBw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c09cebecb2e0_35251190f2c86817–

Redirected to test.host/login Completed 302 Found in 30ms (ActiveRecord: 3.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$MyBkKQzAyHKNxmwxS2fXju4/bBgtl5y3/ZVOWiCpzbyrzec5N3NdO"], ["created_at", "2018-12-07 01:37:02.849407"], ["updated_at", "2018-12-07 01:37:02.849407"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.6ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 7.5ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$akiNSMs8p1GS1.KNl9ttSusD07geOLDjq4WyzwjR4ZqdSB0aLN.Zq"], ["created_at", "2018-12-07 01:37:02.871600"], ["updated_at", "2018-12-07 01:37:02.871600"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4309"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$SM9JmvIy9ph3Bablx4lirugvDfo4k4tjotwZ6j2pAUoPsgX12peCG"], ["updated_at", "2018-12-07 01:37:02.880745"], ["id", 4309]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 1.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$sb48shp/80NiShYUb0n4d.fo3gJS4DWflwe19Gy/hAeurG/ExWl7q"], ["created_at", "2018-12-07 01:37:02.893211"], ["updated_at", "2018-12-07 01:37:02.893211"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"4310"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$9CiYqJr7SCtvF9YqAvZWJeqIfjvIoRakB47KvV6TpxVNPFR/pv5Pu"], ["created_at", "2018-12-07 01:37:02.912604"], ["updated_at", "2018-12-07 01:37:02.912604"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4311"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 19ms (Views: 2.1ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$OskXyAXs0r1vaJdkJEvlEe87QzGlTgH4IqTDJNU0UuJcw2NIdSKF."], ["created_at", "2018-12-07 01:37:02.944614"], ["updated_at", "2018-12-07 01:37:02.944614"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4312"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 8ms (Views: 1.1ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$AafOMWx3tfW.dmM7nNeffe5WJJNrLzQUNn7ZfjBC5xirrcOgZsLAS"], ["created_at", "2018-12-07 01:37:02.966353"], ["updated_at", "2018-12-07 01:37:02.966353"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4313"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JasxWxjf9aFPd/RgvT98wur6Bu9Y9p2QX1als0wgzNY0PWRgZji2K"], ["created_at", "2018-12-07 01:37:03.008916"], ["updated_at", "2018-12-07 01:37:03.008916"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.2ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DegW.xg7CnNsMuf5QVpUP.WTMbDsr7I8SQx9Vy17KfXHd2avC2zBK"], ["created_at", "2018-12-07 01:37:03.025011"], ["updated_at", "2018-12-07 01:37:03.025011"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 5.1ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5QNFQQM3fOnCAssk.kkL3O2Sjh686jsdAuTuQkOlL4.5ZSNiLaqZe"], ["created_at", "2018-12-07 01:37:03.046084"], ["updated_at", "2018-12-07 01:37:03.046084"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.051466"], ["updated_at", "2018-12-07 01:37:03.051466"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3494], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4316], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4316], ["room_id", 3494], ["created_at", "2018-12-07 01:37:03.059621"], ["updated_at", "2018-12-07 01:37:03.059621"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mfOAJs8F0oQ0cRB1ZbL.2eaUNI6838KZIxHDdu6llVHRCiXOl7Is6"], ["created_at", "2018-12-07 01:37:03.076166"], ["updated_at", "2018-12-07 01:37:03.076166"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.081003"], ["updated_at", "2018-12-07 01:37:03.081003"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3495], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4317], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4317], ["room_id", 3495], ["created_at", "2018-12-07 01:37:03.089035"], ["updated_at", "2018-12-07 01:37:03.089035"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.6ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KKAMY1K4QoRA62e8Wxf5XeYarq8ZB1Njr5q4nX6ekrl2ShnXmpBRa"], ["created_at", "2018-12-07 01:37:03.150402"], ["updated_at", "2018-12-07 01:37:03.150402"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.154700"], ["updated_at", "2018-12-07 01:37:03.154700"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:37:03 -0200

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:03.167893"], ["last_sign_in_at", "2018-12-07 01:37:03.167893"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:03.169217"], ["id", 4318]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3496"}
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3496], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4318], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4318], ["room_id", 3496], ["created_at", "2018-12-07 01:37:03.189361"], ["updated_at", "2018-12-07 01:37:03.189361"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3496], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0sd3uqbAN8Bx1sbterNCjeXj0UUzUvfubsb3hYcyvhK8HOP6ZW0UO"], ["created_at", "2018-12-07 01:37:03.205681"], ["updated_at", "2018-12-07 01:37:03.205681"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.210804"], ["updated_at", "2018-12-07 01:37:03.210804"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:37:03 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:03.216068"], ["last_sign_in_at", "2018-12-07 01:37:03.216068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:03.217180"], ["id", 4319]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3497"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3497], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4319], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4319], ["room_id", 3497], ["created_at", "2018-12-07 01:37:03.228807"], ["updated_at", "2018-12-07 01:37:03.228807"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$p196XmmeiyIFiTonpoJukuHCyoWHWxfBd7Vn8koYL/Sf5RmE18UIO"], ["created_at", "2018-12-07 01:37:03.251865"], ["updated_at", "2018-12-07 01:37:03.251865"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.256620"], ["updated_at", "2018-12-07 01:37:03.256620"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:37:03 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:03.262232"], ["last_sign_in_at", "2018-12-07 01:37:03.262232"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:03.263290"], ["id", 4320]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3498", "user_id"=>"4320"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3498], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4320], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4320], ["room_id", 3498], ["created_at", "2018-12-07 01:37:03.274844"], ["updated_at", "2018-12-07 01:37:03.274844"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:37:03 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3498", "user_id"=>"4320"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4320], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3498], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4320], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4320], ["room_id", 3498], ["created_at", "2018-12-07 01:37:03.292629"], ["updated_at", "2018-12-07 01:37:03.292629"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 3.9ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nDt6Z9DK3nHxgUYVPpYTiOHqVhsg/tQkYWEhcVm.Y9b1sxAFHni.2"], ["created_at", "2018-12-07 01:37:03.305809"], ["updated_at", "2018-12-07 01:37:03.305809"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.310702"], ["updated_at", "2018-12-07 01:37:03.310702"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:37:03 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:03.316561"], ["last_sign_in_at", "2018-12-07 01:37:03.316561"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:03.317696"], ["id", 4321]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3499", "user_id"=>"4321"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3499], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4321], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4321], ["room_id", 3499], ["created_at", "2018-12-07 01:37:03.329256"], ["updated_at", "2018-12-07 01:37:03.329256"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.6ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:37:03 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3499", "user_id"=>"4321"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4321], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3499], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4321], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4321], ["room_id", 3499], ["created_at", "2018-12-07 01:37:03.346178"], ["updated_at", "2018-12-07 01:37:03.346178"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.4ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3499], ["user_id", 4321], ["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$r/kFY/MetDfUo14/mRBMHOvZnwNh07WISZ.jN8MHmx.dcVCOCITUy"], ["created_at", "2018-12-07 01:37:03.362053"], ["updated_at", "2018-12-07 01:37:03.362053"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.366693"], ["updated_at", "2018-12-07 01:37:03.366693"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:37:03 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:03.373086"], ["last_sign_in_at", "2018-12-07 01:37:03.373086"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:03.374153"], ["id", 4322]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3500", "user_id"=>"4322"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3500], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4322], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4322], ["room_id", 3500], ["created_at", "2018-12-07 01:37:03.386228"], ["updated_at", "2018-12-07 01:37:03.386228"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.7ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:37:03 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3500", "user_id"=>"4322"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4322], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3500], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4322], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4322], ["room_id", 3500], ["created_at", "2018-12-07 01:37:03.403137"], ["updated_at", "2018-12-07 01:37:03.403137"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.6ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3500], ["user_id", 4322], ["status", 1], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XsqT7qVKgziap/5mCg.M7.Y4ZADa590XB4R73ehCUimCQQrlmhUpG"], ["created_at", "2018-12-07 01:37:03.418331"], ["updated_at", "2018-12-07 01:37:03.418331"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.422821"], ["updated_at", "2018-12-07 01:37:03.422821"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:37:03 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:03.428046"], ["last_sign_in_at", "2018-12-07 01:37:03.428046"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:03.429152"], ["id", 4323]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3501"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3501], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tYGaduTI.9.3fLEav/sK8OX6.VB8UxP3YiIBB4nt2EvJy2FDMvd0q"], ["created_at", "2018-12-07 01:37:03.448923"], ["updated_at", "2018-12-07 01:37:03.448923"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.453529"], ["updated_at", "2018-12-07 01:37:03.453529"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:37:03 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:03.458601"], ["last_sign_in_at", "2018-12-07 01:37:03.458601"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:03.459711"], ["id", 4324]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3502"}
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fAxD67.KS4w3xc60JF4zNOT0goYGQRkpyxkq5aa.hd5UzSXq//BWK"], ["created_at", "2018-12-07 01:37:03.477535"], ["updated_at", "2018-12-07 01:37:03.477535"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.483055"], ["updated_at", "2018-12-07 01:37:03.483055"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3503], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4325], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4325], ["room_id", 3503], ["created_at", "2018-12-07 01:37:03.492129"], ["updated_at", "2018-12-07 01:37:03.492129"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3503” for 127.0.0.1 at 2018-12-06 23:37:03 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:03.497085"], ["last_sign_in_at", "2018-12-07 01:37:03.497085"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:03.498154"], ["id", 4325]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3503"}
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3503], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3503')
Rendered appointments/show.html.erb within layouts/application (13.9ms)
Rendered layouts/_header-user.html.erb (3.2ms)

Completed 200 OK in 236ms (Views: 231.0ms | ActiveRecord: 1.5ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nLUD6ugnNumg1fNeFxd6u.0bej8PvAeymySZWpC69ZIMU6eU7dfJe"], ["created_at", "2018-12-07 01:37:03.749232"], ["updated_at", "2018-12-07 01:37:03.749232"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.753950"], ["updated_at", "2018-12-07 01:37:03.753950"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3504], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4326], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4326], ["room_id", 3504], ["created_at", "2018-12-07 01:37:03.762350"], ["updated_at", "2018-12-07 01:37:03.762350"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3121/edit” for 127.0.0.1 at 2018-12-06 23:37:03 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:03.766936"], ["last_sign_in_at", "2018-12-07 01:37:03.766936"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:03.767885"], ["id", 4326]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"3121"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3121], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QThrRkeK8iY6fn/w175/YOx5Ct.z4jIuXyz8G5.EVtgrn4JPOt6Pa"], ["created_at", "2018-12-07 01:37:03.795738"], ["updated_at", "2018-12-07 01:37:03.795738"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:37:03 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:03.800363"], ["last_sign_in_at", "2018-12-07 01:37:03.800363"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:03.801394"], ["id", 4327]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IK/WidMVWeP2LfT47G4OquGEAptVXtUj1rpVk2eRHpiydNRtBE7Aq"], ["created_at", "2018-12-07 01:37:03.827945"], ["updated_at", "2018-12-07 01:37:03.827945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.832397"], ["updated_at", "2018-12-07 01:37:03.832397"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3505], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4328], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4328], ["room_id", 3505], ["created_at", "2018-12-07 01:37:03.841030"], ["updated_at", "2018-12-07 01:37:03.841030"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3505], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4328], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4328], ["room_id", 3505], ["created_at", "2018-12-07 01:37:03.849667"], ["updated_at", "2018-12-07 01:37:03.849667"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:37:03 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:03.854023"], ["last_sign_in_at", "2018-12-07 01:37:03.854023"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:03.855084"], ["id", 4328]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4328]]
Rendered appointments/my_appointments.html.erb within layouts/application (5.8ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 20ms (Views: 10.5ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uCHOf5Uwgk3MWGcqi.Eb0OnhKd1K0mWkBY.W8sZvEbmL9Ce5lWn6K"], ["created_at", "2018-12-07 01:37:03.890149"], ["updated_at", "2018-12-07 01:37:03.890149"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.894509"], ["updated_at", "2018-12-07 01:37:03.894509"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3506], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4329], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4329], ["room_id", 3506], ["created_at", "2018-12-07 01:37:03.902632"], ["updated_at", "2018-12-07 01:37:03.902632"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3506], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4329], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4329], ["room_id", 3506], ["created_at", "2018-12-07 01:37:03.911451"], ["updated_at", "2018-12-07 01:37:03.911451"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:37:03 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:03.915915"], ["last_sign_in_at", "2018-12-07 01:37:03.915915"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:03.917054"], ["id", 4329]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4329]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RAMSxTpmU8Ja3bq8SucnSOTo2x/QTh44zp1mk4ghWvIaIw6tTtl4W"], ["created_at", "2018-12-07 01:37:03.941850"], ["updated_at", "2018-12-07 01:37:03.941850"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.948075"], ["updated_at", "2018-12-07 01:37:03.948075"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3507], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4330], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4330], ["room_id", 3507], ["created_at", "2018-12-07 01:37:03.958007"], ["updated_at", "2018-12-07 01:37:03.958007"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/3126” for 127.0.0.1 at 2018-12-06 23:37:03 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:03.962647"], ["last_sign_in_at", "2018-12-07 01:37:03.962647"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:03.963666"], ["id", 4330]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3126"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3126], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3126]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LpdV.nu46neT3B3jqm4hk.uAHN0zfNW2qtW5F93phqYs1cL6oYYda"], ["created_at", "2018-12-07 01:37:03.987887"], ["updated_at", "2018-12-07 01:37:03.987887"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:03.993015"], ["updated_at", "2018-12-07 01:37:03.993015"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$o.IJKnWicCF8G/U7M1QSZ.oRcZ9qScZP8V/jQh7jcgXhyn/O8Fcpq"], ["created_at", "2018-12-07 01:37:04.001129"], ["updated_at", "2018-12-07 01:37:04.001129"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3508], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4332], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4332], ["room_id", 3508], ["created_at", "2018-12-07 01:37:04.010184"], ["updated_at", "2018-12-07 01:37:04.010184"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3127” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.015526"], ["last_sign_in_at", "2018-12-07 01:37:04.015526"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.016655"], ["id", 4331]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3127"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3127], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3508], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4332], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 9ms (ActiveRecord: 2.0ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1W8BCMftOhBYekNlVAlPpevVhFAe6GlHpy0hdNIEMvBu5FUpr9FXu"], ["created_at", "2018-12-07 01:37:04.043412"], ["updated_at", "2018-12-07 01:37:04.043412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.047729"], ["updated_at", "2018-12-07 01:37:04.047729"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$E/R6I2KuWQyg.fLkYAaMfeWwfnDQXd7y3qKgzShpNlUuvTQEKJ1qe"], ["created_at", "2018-12-07 01:37:04.055107"], ["updated_at", "2018-12-07 01:37:04.055107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3509], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4334], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4334], ["room_id", 3509], ["created_at", "2018-12-07 01:37:04.062778"], ["updated_at", "2018-12-07 01:37:04.062778"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3128” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.067447"], ["last_sign_in_at", "2018-12-07 01:37:04.067447"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.068326"], ["id", 4333]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3128"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3128], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3509], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4334], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 7ms (ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RF290gJpiOxKcTe4Sw1UleR81P7dlF9BE9WrV.spakL6NwPgQT/Hm"], ["created_at", "2018-12-07 01:37:04.089607"], ["updated_at", "2018-12-07 01:37:04.089607"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.093970"], ["updated_at", "2018-12-07 01:37:04.093970"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$axwwVKNHIRB9VP6wFSGvjOcXb28QaLGZlDY50ExeRwzcSGQgSxy/W"], ["created_at", "2018-12-07 01:37:04.101386"], ["updated_at", "2018-12-07 01:37:04.101386"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3510], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4336], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4336], ["room_id", 3510], ["created_at", "2018-12-07 01:37:04.108999"], ["updated_at", "2018-12-07 01:37:04.108999"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3129” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.114467"], ["last_sign_in_at", "2018-12-07 01:37:04.114467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.115437"], ["id", 4335]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"3129"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3129], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3510], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4336], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:37:04.126109"], ["id", 3129]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (5.8ms) Date: Thu, 06 Dec 2018 23:37:04 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09cec02139c_35251190f2c876c2@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cec0204be_35251190f2c875cf";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cec0204be_35251190f2c875cf Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c09cec0204be_35251190f2c875cf Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c09cec0204be_35251190f2c875cf–

Completed 302 Found in 20ms (ActiveRecord: 2.1ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mW8ow8kn9rp..hzCcGhauetAbup9LjYN7CiM7iAWxme.CuTgfMu1q"], ["created_at", "2018-12-07 01:37:04.150741"], ["updated_at", "2018-12-07 01:37:04.150741"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.154717"], ["updated_at", "2018-12-07 01:37:04.154717"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ihjws1CnycSKMEw3D0LTq.Xw1.T/TsU3nhV/.3SAsnItzq2GO8U0O"], ["created_at", "2018-12-07 01:37:04.161809"], ["updated_at", "2018-12-07 01:37:04.161809"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3511], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4338], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4338], ["room_id", 3511], ["created_at", "2018-12-07 01:37:04.169478"], ["updated_at", "2018-12-07 01:37:04.169478"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:37:04.173353"], ["id", 3130]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3511], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4338], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4338], ["room_id", 3511], ["created_at", "2018-12-07 01:37:04.180493"], ["updated_at", "2018-12-07 01:37:04.180493"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:37:04.184166"], ["id", 3131]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.187948"], ["last_sign_in_at", "2018-12-07 01:37:04.187948"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.188884"], ["id", 4337]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4338], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3511], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4338], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3511], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.0ms)
Rendered layouts/_header-admin.html.erb (2.7ms)

Completed 200 OK in 17ms (Views: 13.2ms | ActiveRecord: 1.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ukF4krIn5o7GaHVUReFKluIEileoGmwUt/wbFOsWQl1UFPlFU8fC6"], ["created_at", "2018-12-07 01:37:04.219716"], ["updated_at", "2018-12-07 01:37:04.219716"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.223506"], ["updated_at", "2018-12-07 01:37:04.223506"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sfaX867BXjZB55gaJCi/Juom2.kCEQlClHyKpIUlTDtM5Ux3xXCrK"], ["created_at", "2018-12-07 01:37:04.230631"], ["updated_at", "2018-12-07 01:37:04.230631"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3512], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4340], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4340], ["room_id", 3512], ["created_at", "2018-12-07 01:37:04.237980"], ["updated_at", "2018-12-07 01:37:04.237980"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:37:04.242170"], ["id", 3132]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3512], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4340], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4340], ["room_id", 3512], ["created_at", "2018-12-07 01:37:04.249981"], ["updated_at", "2018-12-07 01:37:04.249981"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:37:04.254057"], ["id", 3133]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.258204"], ["last_sign_in_at", "2018-12-07 01:37:04.258204"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.259269"], ["id", 4339]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4340], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3512], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4340], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3512], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.6ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 2.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IeYQcQOQS1PEn9xiafWEJevU30MPMEQmgTkKPM.EFKUJv9FdXDgga"], ["created_at", "2018-12-07 01:37:04.310757"], ["updated_at", "2018-12-07 01:37:04.310757"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.315092"], ["last_sign_in_at", "2018-12-07 01:37:04.315092"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.315950"], ["id", 4341]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (5.5ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0dpi8xFbyfwZe2XlHIFxzOAsHJOFnHg2n9q7DtxKhEAYtBUEsusZe"], ["created_at", "2018-12-07 01:37:04.357693"], ["updated_at", "2018-12-07 01:37:04.357693"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.362108"], ["last_sign_in_at", "2018-12-07 01:37:04.362108"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.363368"], ["id", 4342]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$r5jTUiRHuhdRcnXuo7jCy..WAMEyFxP/zbt10aYe3YFcYDuKbeFDm"], ["created_at", "2018-12-07 01:37:04.378460"], ["updated_at", "2018-12-07 01:37:04.378460"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.382946"], ["last_sign_in_at", "2018-12-07 01:37:04.382946"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.383901"], ["id", 4343]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TVew7CQSEUyBrrGVvB7GS.MVXTvNkqSJKJJUpTuBrWMEF2DG2ZLlq"], ["created_at", "2018-12-07 01:37:04.408149"], ["updated_at", "2018-12-07 01:37:04.408149"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.412525"], ["last_sign_in_at", "2018-12-07 01:37:04.412525"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.413633"], ["id", 4344]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:37:04 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BLAhQXjBdYkSv3ee/Bhaq.WEKuLiggYYdHdYe/l5kQVcm4CT.sDau"], ["created_at", "2018-12-07 01:37:04.446670"], ["updated_at", "2018-12-07 01:37:04.446670"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.450952"], ["updated_at", "2018-12-07 01:37:04.450952"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3513” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.455052"], ["last_sign_in_at", "2018-12-07 01:37:04.455052"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.456056"], ["id", 4345]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3513"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3513], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6zWy0rO5bAwE1ceoxZiIOe6btl2iqs6WvA6.MbuIDZVCXmqp8anQ."], ["created_at", "2018-12-07 01:37:04.478152"], ["updated_at", "2018-12-07 01:37:04.478152"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.483354"], ["updated_at", "2018-12-07 01:37:04.483354"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3514” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.487797"], ["last_sign_in_at", "2018-12-07 01:37:04.487797"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.488913"], ["id", 4346]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3514"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3514], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.506607"], ["updated_at", "2018-12-07 01:37:04.506607"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3515” for 127.0.0.1 at 2018-12-06 23:37:04 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3515"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MGMowcEi6FeZ3/IC7S5QR.2S7eIuLs5GSmjdqOLuz9pUf9oRNOy3C"], ["created_at", "2018-12-07 01:37:04.521958"], ["updated_at", "2018-12-07 01:37:04.521958"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.526785"], ["updated_at", "2018-12-07 01:37:04.526785"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3516” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.530910"], ["last_sign_in_at", "2018-12-07 01:37:04.530910"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.531973"], ["id", 4347]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3516"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (6.0ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 29ms (Views: 11.8ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.571477"], ["updated_at", "2018-12-07 01:37:04.571477"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3517” for 127.0.0.1 at 2018-12-06 23:37:04 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3517"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gT./UVwdgb5BGiI3mJRkNOscDMEIHbSjMCthCWS6a6fOj3oQkg10S"], ["created_at", "2018-12-07 01:37:04.588557"], ["updated_at", "2018-12-07 01:37:04.588557"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.593163"], ["updated_at", "2018-12-07 01:37:04.593163"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3518/edit” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.598014"], ["last_sign_in_at", "2018-12-07 01:37:04.598014"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.599186"], ["id", 4348]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3518"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3518], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$huUIL1pH4hTM6eVshmaRS.IJs1RRZpkeNHKw1U9pZa1xK8VIBGahK"], ["created_at", "2018-12-07 01:37:04.624185"], ["updated_at", "2018-12-07 01:37:04.624185"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.628244"], ["updated_at", "2018-12-07 01:37:04.628244"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3519/edit” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.632239"], ["last_sign_in_at", "2018-12-07 01:37:04.632239"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.633192"], ["id", 4349]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3519"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3519], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.652249"], ["updated_at", "2018-12-07 01:37:04.652249"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3520” for 127.0.0.1 at 2018-12-06 23:37:04 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3520"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n.KaqF2vJh/roak3b75clOIPOdOLlPzrFj6.TzHeQ3FsN9uBGSQum"], ["created_at", "2018-12-07 01:37:04.666735"], ["updated_at", "2018-12-07 01:37:04.666735"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.671766"], ["last_sign_in_at", "2018-12-07 01:37:04.671766"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.672654"], ["id", 4350]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.679214"], ["updated_at", "2018-12-07 01:37:04.679214"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Nf6B3VYAkGzZ2j8rI/RaJ.W61Q4mhkSUg3E6aN1c5XLk2F1VvvefG"], ["created_at", "2018-12-07 01:37:04.693312"], ["updated_at", "2018-12-07 01:37:04.693312"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.701134"], ["last_sign_in_at", "2018-12-07 01:37:04.701134"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.702211"], ["id", 4351]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.709189"], ["updated_at", "2018-12-07 01:37:04.709189"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mUdaN8dgfVucFy5x5spsDOs52evIq7X0tpnPT9kkH7NHDsrZvznQC"], ["created_at", "2018-12-07 01:37:04.722117"], ["updated_at", "2018-12-07 01:37:04.722117"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.728063"], ["last_sign_in_at", "2018-12-07 01:37:04.728063"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.729137"], ["id", 4352]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$or7vqEd5ZE3ai1zARVuWg.FmOQkQQmV27dynU1bYYVflQfU/nX9VO"], ["created_at", "2018-12-07 01:37:04.748530"], ["updated_at", "2018-12-07 01:37:04.748530"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.753764"], ["last_sign_in_at", "2018-12-07 01:37:04.753764"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.754653"], ["id", 4353]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KRALa5oL4uPhdKIdo0K4F.j85dab2jG1srImOIzCI8IPtW2DSZGpC"], ["created_at", "2018-12-07 01:37:04.772597"], ["updated_at", "2018-12-07 01:37:04.772597"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.777712"], ["last_sign_in_at", "2018-12-07 01:37:04.777712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.778893"], ["id", 4354]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FZhiaJz4lNXbQT7/rqyUc.R4lNICOAEGdMMtw2TXzy32HueG7.5Be"], ["created_at", "2018-12-07 01:37:04.799819"], ["updated_at", "2018-12-07 01:37:04.799819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.805325"], ["updated_at", "2018-12-07 01:37:04.805325"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3523” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.811448"], ["last_sign_in_at", "2018-12-07 01:37:04.811448"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.812806"], ["id", 4355]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3523"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3523], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:37:04.821095"], ["id", 3523]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3523 Completed 302 Found in 7ms (ActiveRecord: 1.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G.PlpOrAl7bRvPCkXwLIguB1w04JFvfAN005QFk2z6Jd23tRj1wFG"], ["created_at", "2018-12-07 01:37:04.834977"], ["updated_at", "2018-12-07 01:37:04.834977"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.839036"], ["updated_at", "2018-12-07 01:37:04.839036"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3524” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.843510"], ["last_sign_in_at", "2018-12-07 01:37:04.843510"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.844500"], ["id", 4356]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3524"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3524], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:37:04.852010"], ["id", 3524]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3524 Completed 302 Found in 6ms (ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$M9emGn6zdvIAuDdNRpc1ZO/veC.TGD9sqm8/UC0215eX0YWYXAmEG"], ["created_at", "2018-12-07 01:37:04.864876"], ["updated_at", "2018-12-07 01:37:04.864876"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.869081"], ["updated_at", "2018-12-07 01:37:04.869081"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3525” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.873522"], ["last_sign_in_at", "2018-12-07 01:37:04.873522"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.874482"], ["id", 4357]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3525"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3525], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 8.3ms | ActiveRecord: 0.7ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vYgMubDpkdaDsriUb0eaxeh1fec6YZ3bL2hB/kgtYdqBDejgQuBTO"], ["created_at", "2018-12-07 01:37:04.901172"], ["updated_at", "2018-12-07 01:37:04.901172"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.905999"], ["updated_at", "2018-12-07 01:37:04.905999"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3526” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.912341"], ["last_sign_in_at", "2018-12-07 01:37:04.912341"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.913832"], ["id", 4358]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3526"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3526], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 8.0ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8OKOkrvnOirjtlhbX40tsOrDUt7c0cY6aNWiB4Dv/YkxqgYZSSwf2"], ["created_at", "2018-12-07 01:37:04.941605"], ["updated_at", "2018-12-07 01:37:04.941605"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.946551"], ["last_sign_in_at", "2018-12-07 01:37:04.946551"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.947557"], ["id", 4359]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JvirNZYt633Ot/TNYs4M3uQFxqXceoQHnqFjoIRvWCUZsLb6NYRtW"], ["created_at", "2018-12-07 01:37:04.962331"], ["updated_at", "2018-12-07 01:37:04.962331"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.966611"], ["updated_at", "2018-12-07 01:37:04.966611"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3527” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.970186"], ["last_sign_in_at", "2018-12-07 01:37:04.970186"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.971142"], ["id", 4360]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3527"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3527], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3527]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G../EJMbLpK6AdRCf2lCh.0sJAF8dRiyM8ToCYaW8vV/rOISZ85ji"], ["created_at", "2018-12-07 01:37:04.990827"], ["updated_at", "2018-12-07 01:37:04.990827"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:04.995050"], ["updated_at", "2018-12-07 01:37:04.995050"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3528” for 127.0.0.1 at 2018-12-06 23:37:04 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:04.998848"], ["last_sign_in_at", "2018-12-07 01:37:04.998848"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:04.999778"], ["id", 4361]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3528"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3528], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3528]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qeCKEwPbC72aw0k1da4BtO02/HnJBpJdHvCYfIqWMcsBsl8XulO4q"], ["created_at", "2018-12-07 01:37:05.017973"], ["updated_at", "2018-12-07 01:37:05.017973"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:05.023762"], ["updated_at", "2018-12-07 01:37:05.023762"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3529” for 127.0.0.1 at 2018-12-06 23:37:05 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:05.028377"], ["last_sign_in_at", "2018-12-07 01:37:05.028377"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:05.029731"], ["id", 4362]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3529"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kT9fuggB5SAndDD34hPobOmK2umqwvTUMm0M3qNuXtkisGUFLiKyq"], ["created_at", "2018-12-07 01:37:05.046343"], ["updated_at", "2018-12-07 01:37:05.046343"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:05.051293"], ["updated_at", "2018-12-07 01:37:05.051293"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3530” for 127.0.0.1 at 2018-12-06 23:37:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:05.055327"], ["last_sign_in_at", "2018-12-07 01:37:05.055327"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:05.056348"], ["id", 4363]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3530"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0P7BCtzdTPOhoKCXWkh/SePDTEPckZoFM6wdPtL09O7jQvVXQu6vm"], ["created_at", "2018-12-07 01:37:05.072234"], ["updated_at", "2018-12-07 01:37:05.072234"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:37:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:05.076795"], ["last_sign_in_at", "2018-12-07 01:37:05.076795"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:05.077833"], ["id", 4364]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.zA3cZS4FrHW9wlEqUduCOK7APzGatONd/oXK2DZ22sEDa0HMYXZq"], ["created_at", "2018-12-07 01:37:05.108561"], ["updated_at", "2018-12-07 01:37:05.108561"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:05.112940"], ["updated_at", "2018-12-07 01:37:05.112940"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:05.117001"], ["updated_at", "2018-12-07 01:37:05.117001"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:05.122033"], ["updated_at", "2018-12-07 01:37:05.122033"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3531], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4365], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4365], ["room_id", 3531], ["created_at", "2018-12-07 01:37:05.130948"], ["updated_at", "2018-12-07 01:37:05.130948"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:37:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:05.135768"], ["last_sign_in_at", "2018-12-07 01:37:05.135768"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:05.136932"], ["id", 4365]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 25ms (Views: 10.7ms | ActiveRecord: 1.8ms)

Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CBueYR8Vq2ssXKc9ijPfw.3aHEe.ejUa.KzwGRS/JspApJdSC9GaG"], ["created_at", "2018-12-07 01:37:05.180927"], ["updated_at", "2018-12-07 01:37:05.180927"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:05.186406"], ["updated_at", "2018-12-07 01:37:05.186406"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:05.190271"], ["updated_at", "2018-12-07 01:37:05.190271"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:37:05.194541"], ["updated_at", "2018-12-07 01:37:05.194541"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3534], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4366], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4366], ["room_id", 3534], ["created_at", "2018-12-07 01:37:05.205466"], ["updated_at", "2018-12-07 01:37:05.205466"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:37:05 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:37:05.210344"], ["last_sign_in_at", "2018-12-07 01:37:05.210344"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:37:05.211708"], ["id", 4366]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (31.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (51.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (35.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$b43MagysUszNzFuPkXMjUOG3MSumfZugjpxIyXOrRRGoVbC4IiVdi"], ["created_at", "2018-12-07 14:45:32.482021"], ["updated_at", "2018-12-07 14:45:32.482021"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 12:45:32 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.0ms)
Rendered users/sessions/new.html.erb within layouts/application (542.5ms)

Completed 200 OK in 563ms (Views: 550.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 12:45:33 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (16.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 14:45:33.178449"], ["last_sign_in_at", "2018-12-07 14:45:33.178449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 14:45:33.179632"], ["id", 4367]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 37ms (ActiveRecord: 18.4ms) Started GET “/” for 127.0.0.1 at 2018-12-07 12:45:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4367], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (4.4ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 34ms (Views: 31.8ms | ActiveRecord: 1.0ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 12:45:33 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (61.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (68.6ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4367], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 84ms (Views: 14.3ms | ActiveRecord: 63.4ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (14.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$3fcf9TL2RKnVq64SbrKcCerT1uE8KUxlx/wHFYEyGruhFlfPaxfAa"], ["created_at", "2018-12-07 14:46:27.193412"], ["updated_at", "2018-12-07 14:46:27.193412"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 12:46:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.4ms)
Rendered users/sessions/new.html.erb within layouts/application (245.2ms)

Completed 200 OK in 265ms (Views: 253.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 12:46:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 14:46:27.511380"], ["last_sign_in_at", "2018-12-07 14:46:27.511380"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 14:46:27.512625"], ["id", 4368]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 12:46:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4368], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 12:46:27 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.8ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4368], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 22ms (Views: 10.3ms | ActiveRecord: 4.5ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$0XZv3EbyQigRZcEzIP0cGumQGFL5bGZ0sAi8wpP1r8CRAkVw76yPS"], ["created_at", "2018-12-07 14:47:49.739642"], ["updated_at", "2018-12-07 14:47:49.739642"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 12:47:49 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.3ms)
Rendered users/sessions/new.html.erb within layouts/application (306.8ms)

Completed 200 OK in 327ms (Views: 315.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 12:47:50 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 14:47:50.123403"], ["last_sign_in_at", "2018-12-07 14:47:50.123403"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 14:47:50.124517"], ["id", 4369]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 12:47:50 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4369], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 12:47:50 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.7ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4369], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 23ms (Views: 11.2ms | ActiveRecord: 4.3ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$vROeWyVRDs3l53Bf5d1/uesh260yaUxYL8UQJsnr1qwrnLNFxmA22"], ["created_at", "2018-12-07 14:48:53.223403"], ["updated_at", "2018-12-07 14:48:53.223403"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 12:48:53 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (20.0ms)
Rendered users/sessions/new.html.erb within layouts/application (259.2ms)

Completed 200 OK in 279ms (Views: 267.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 12:48:53 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 14:48:53.553512"], ["last_sign_in_at", "2018-12-07 14:48:53.553512"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 14:48:53.554664"], ["id", 4370]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 12:48:53 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4370], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.2ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 12:48:53 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.8ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4370], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 23ms (Views: 11.2ms | ActiveRecord: 4.6ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.5ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$pd2/hnw7P383LamwZCLAjem2E5M.WXn./fOk1NuK4i/Pz2wttm1.G"], ["created_at", "2018-12-07 14:49:30.706059"], ["updated_at", "2018-12-07 14:49:30.706059"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 12:49:30 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.3ms)
Rendered users/sessions/new.html.erb within layouts/application (304.0ms)

Completed 200 OK in 324ms (Views: 312.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 12:49:31 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 14:49:31.115360"], ["last_sign_in_at", "2018-12-07 14:49:31.115360"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 14:49:31.116547"], ["id", 4371]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 12:49:31 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4371], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.6ms)
Rendered layouts/_header-user.html.erb (3.4ms)

Completed 200 OK in 15ms (Views: 12.3ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 12:49:31 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.1ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4371], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 24ms (Views: 11.6ms | ActiveRecord: 4.5ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$.XWGQFNjOkjiqlo4vpn51uUoSA96FReBsHEWgUuQ4KdHnrGK5cdhS"], ["created_at", "2018-12-07 14:50:44.693272"], ["updated_at", "2018-12-07 14:50:44.693272"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 12:50:44 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (21.7ms)
Rendered users/sessions/new.html.erb within layouts/application (341.5ms)

Completed 200 OK in 370ms (Views: 350.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 12:50:45 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 14:50:45.118655"], ["last_sign_in_at", "2018-12-07 14:50:45.118655"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 14:50:45.119974"], ["id", 4372]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 23ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 12:50:45 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4372], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (5.5ms)
Rendered layouts/_header-user.html.erb (12.0ms)

Completed 200 OK in 33ms (Views: 30.0ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 12:50:45 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (16.1ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4372], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (3.0ms)

Completed 200 OK in 47ms (Views: 29.7ms | ActiveRecord: 4.7ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.6ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.5ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$wRjoWldngf0vaHj5EJz6autAm5inSgimk4s.HWWQcYRzaDJLpDa2u"], ["created_at", "2018-12-07 14:52:43.591613"], ["updated_at", "2018-12-07 14:52:43.591613"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 12:52:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.6ms)
Rendered users/sessions/new.html.erb within layouts/application (231.1ms)

Completed 200 OK in 253ms (Views: 239.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 12:52:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 14:52:43.904552"], ["last_sign_in_at", "2018-12-07 14:52:43.904552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 14:52:43.905704"], ["id", 4373]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 12:52:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4373], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.2ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 12:52:43 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.4ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4373], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 21ms (Views: 10.3ms | ActiveRecord: 4.2ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$RUhdHZUOFzeWMUd7c8Cfh.E3ny6mBP1HQqihaW5UpC8kcc6X0Q.Wa"], ["created_at", "2018-12-07 14:55:00.966176"], ["updated_at", "2018-12-07 14:55:00.966176"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 12:55:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.2ms)
Rendered users/sessions/new.html.erb within layouts/application (315.7ms)

Completed 200 OK in 336ms (Views: 323.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 12:55:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 14:55:01.361048"], ["last_sign_in_at", "2018-12-07 14:55:01.361048"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 14:55:01.362282"], ["id", 4374]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 12:55:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4374], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (33.5ms)

Completed 200 OK in 42ms (Views: 39.8ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 12:55:01 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (9.0ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4374], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 28ms (Views: 15.7ms | ActiveRecord: 4.7ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.5ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.5ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$QnFRqX.5BbDluUywPeCjPOAlJfV0MDIlo/OKjCfYQi6fB3/aC05se"], ["created_at", "2018-12-07 14:55:25.747692"], ["updated_at", "2018-12-07 14:55:25.747692"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 12:55:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (19.8ms)
Rendered users/sessions/new.html.erb within layouts/application (304.1ms)

Completed 200 OK in 324ms (Views: 312.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 12:55:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 14:55:26.129297"], ["last_sign_in_at", "2018-12-07 14:55:26.129297"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 14:55:26.130564"], ["id", 4375]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 51ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-07 12:55:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4375], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.8ms)

Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.7ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 12:55:26 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.1ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4375], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 24ms (Views: 12.0ms | ActiveRecord: 4.5ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$Enx6huYtZAeSCD.lOiBS3uvdJ6xs94WNXu4uTQgfEDyTEJ.0DkRgm"], ["created_at", "2018-12-07 14:55:55.133316"], ["updated_at", "2018-12-07 14:55:55.133316"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 12:55:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.2ms)
Rendered users/sessions/new.html.erb within layouts/application (296.2ms)

Completed 200 OK in 317ms (Views: 305.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 12:55:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 14:55:55.509771"], ["last_sign_in_at", "2018-12-07 14:55:55.509771"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 14:55:55.511057"], ["id", 4376]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 12:55:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4376], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 12:55:55 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.6ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4376], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 21ms (Views: 10.0ms | ActiveRecord: 4.5ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.6ms)  ROLLBACK
 (0.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$8cJ8tAhByhtztxy2GPgmR.U/rObRkT7jSPuNAGsIstRe3Fq2mfmEK"], ["created_at", "2018-12-07 14:56:19.637938"], ["updated_at", "2018-12-07 14:56:19.637938"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 12:56:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (19.1ms)
Rendered users/sessions/new.html.erb within layouts/application (215.9ms)

Completed 200 OK in 236ms (Views: 224.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 12:56:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 14:56:19.926007"], ["last_sign_in_at", "2018-12-07 14:56:19.926007"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 14:56:19.927208"], ["id", 4377]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 12:56:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4377], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 12:56:19 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (6.5ms)
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4377], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 21ms (Views: 10.4ms | ActiveRecord: 3.3ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (1.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$JmqU5I0l/IBpVwlhruCu.Og028Y5nC6vb60wONA21mlT1DeAWTsmS"], ["created_at", "2018-12-07 15:03:12.984337"], ["updated_at", "2018-12-07 15:03:12.984337"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:03:12 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.3ms)
Rendered users/sessions/new.html.erb within layouts/application (281.9ms)

Completed 200 OK in 302ms (Views: 290.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:03:13 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (1.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:03:13.338089"], ["last_sign_in_at", "2018-12-07 15:03:13.338089"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:03:13.339278"], ["id", 4378]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 22ms (ActiveRecord: 3.3ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:03:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4378], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.2ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.7ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:03:13 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (9.9ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4378], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 27ms (Views: 14.2ms | ActiveRecord: 4.5ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$2zUAgDl8DE.QqPESG3.4R.RPV7iLR3XgNtd/4R1G0VuCAV6M/Uz.O"], ["created_at", "2018-12-07 15:04:59.993024"], ["updated_at", "2018-12-07 15:04:59.993024"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:04:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.4ms)
Rendered users/sessions/new.html.erb within layouts/application (233.7ms)

Completed 200 OK in 254ms (Views: 242.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:05:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:05:00.296987"], ["last_sign_in_at", "2018-12-07 15:05:00.296987"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:05:00.298012"], ["id", 4379]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:05:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4379], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.3ms | ActiveRecord: 1.0ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:05:00 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.8ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4379], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 23ms (Views: 10.7ms | ActiveRecord: 4.6ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$DeRgOu.G0lb4BqTBKthWm.7mS/o5wVnFcXkaX5e1CeQ64Hobsc7ea"], ["created_at", "2018-12-07 15:09:33.057739"], ["updated_at", "2018-12-07 15:09:33.057739"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:09:33 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (20.7ms)
Rendered users/sessions/new.html.erb within layouts/application (383.6ms)

Completed 200 OK in 411ms (Views: 392.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:09:33 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:09:33.524760"], ["last_sign_in_at", "2018-12-07 15:09:33.524760"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:09:33.525873"], ["id", 4380]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:09:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4380], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (5.7ms)
Rendered layouts/_header-user.html.erb (7.7ms)

Completed 200 OK in 27ms (Views: 23.6ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:09:33 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (14.2ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4380], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (3.0ms)

Completed 200 OK in 43ms (Views: 26.6ms | ActiveRecord: 4.3ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$rrDYejSRHoyES9rzkoPpWe1AF1SE0pw1IUMlaLmG5sA5iwuIq7YwW"], ["created_at", "2018-12-07 15:12:03.696939"], ["updated_at", "2018-12-07 15:12:03.696939"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:12:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (19.6ms)
Rendered users/sessions/new.html.erb within layouts/application (227.8ms)

Completed 200 OK in 250ms (Views: 236.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:12:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:12:04.000259"], ["last_sign_in_at", "2018-12-07 15:12:04.000259"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:12:04.001379"], ["id", 4381]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:12:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4381], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.2ms)
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:12:04 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.4ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4381], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 22ms (Views: 10.6ms | ActiveRecord: 3.9ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$uRoGZz3EZUP018O.ezNRJeXLGG.S9ReKFN4CHjNuaWe/oBQk0guwO"], ["created_at", "2018-12-07 15:13:41.504922"], ["updated_at", "2018-12-07 15:13:41.504922"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:13:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.2ms)
Rendered users/sessions/new.html.erb within layouts/application (372.4ms)

Completed 200 OK in 400ms (Views: 382.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:13:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:13:41.957900"], ["last_sign_in_at", "2018-12-07 15:13:41.957900"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:13:41.959226"], ["id", 4382]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 39ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:13:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4382], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:13:42 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.3ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4382], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 22ms (Views: 10.7ms | ActiveRecord: 4.2ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.5ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$Ut9GlntRw.CRc8yhWVjb6ei/AQLmWwaWc96kX/A6q2qz6YUvQl0Si"], ["created_at", "2018-12-07 15:14:37.915082"], ["updated_at", "2018-12-07 15:14:37.915082"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:14:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.1ms)
Rendered users/sessions/new.html.erb within layouts/application (396.3ms)

Completed 200 OK in 416ms (Views: 404.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:14:38 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:14:38.382535"], ["last_sign_in_at", "2018-12-07 15:14:38.382535"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:14:38.383772"], ["id", 4383]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:14:38 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4383], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.9ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:14:38 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.2ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4383], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 22ms (Views: 10.6ms | ActiveRecord: 4.2ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$Fk5PaijL0bWNlSzcZThAMu.VgOwQsGZLLzCCsp3U0UPFimtSMsr6G"], ["created_at", "2018-12-07 15:20:10.641733"], ["updated_at", "2018-12-07 15:20:10.641733"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:20:10 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (23.1ms)
Rendered users/sessions/new.html.erb within layouts/application (337.3ms)

Completed 200 OK in 358ms (Views: 345.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:20:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:20:11.055614"], ["last_sign_in_at", "2018-12-07 15:20:11.055614"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:20:11.056796"], ["id", 4384]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:20:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4384], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (5.5ms)
Rendered layouts/_header-user.html.erb (8.0ms)

Completed 200 OK in 28ms (Views: 23.7ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:20:11 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (12.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4384], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (3.2ms)

Completed 200 OK in 42ms (Views: 25.8ms | ActiveRecord: 4.3ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.5ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.6ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.5ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$8TwXUNvwRySU4nm2jaihK.n.sFRsGgB5qY8AqzRm27I3fKoeBmCsS"], ["created_at", "2018-12-07 15:22:00.309605"], ["updated_at", "2018-12-07 15:22:00.309605"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:22:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.0ms)
Rendered users/sessions/new.html.erb within layouts/application (304.6ms)

Completed 200 OK in 324ms (Views: 312.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:22:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:22:00.718438"], ["last_sign_in_at", "2018-12-07 15:22:00.718438"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:22:00.719658"], ["id", 4385]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 49ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:22:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4385], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.2ms)
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:22:00 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.0ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4385], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 23ms (Views: 11.3ms | ActiveRecord: 4.5ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.6ms)  ROLLBACK
 (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$Eg0WXfTElDzxD7kQEkd3YeXUk.mtiXOeW0OlQJ/5N2wr7mWT2RZ.q"], ["created_at", "2018-12-07 15:23:23.837128"], ["updated_at", "2018-12-07 15:23:23.837128"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:23:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.8ms)
Rendered users/sessions/new.html.erb within layouts/application (304.5ms)

Completed 200 OK in 324ms (Views: 312.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:23:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:23:24.254939"], ["last_sign_in_at", "2018-12-07 15:23:24.254939"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:23:24.256117"], ["id", 4386]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 3.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:23:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4386], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.3ms)
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 1.0ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:23:24 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.1ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4386], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 23ms (Views: 11.2ms | ActiveRecord: 4.6ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$53xZ2LZYQ.VaSbHl6TbhpetMnI/Ih0KIksHZ1LxcqgwQygylcgLgm"], ["created_at", "2018-12-07 15:24:43.063820"], ["updated_at", "2018-12-07 15:24:43.063820"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:24:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.4ms)
Rendered users/sessions/new.html.erb within layouts/application (219.1ms)

Completed 200 OK in 239ms (Views: 227.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:24:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:24:43.353889"], ["last_sign_in_at", "2018-12-07 15:24:43.353889"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:24:43.355107"], ["id", 4387]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:24:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4387], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:24:43 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.7ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4387], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 23ms (Views: 10.9ms | ActiveRecord: 4.3ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$Cy7xPbKZH8gOELxJ3qMw8.OxaZOgEoxsKDrvSAwUKYWnJJSeuCnj."], ["created_at", "2018-12-07 15:25:55.944601"], ["updated_at", "2018-12-07 15:25:55.944601"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:25:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.1ms)
Rendered users/sessions/new.html.erb within layouts/application (308.8ms)

Completed 200 OK in 329ms (Views: 317.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:25:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:25:56.366623"], ["last_sign_in_at", "2018-12-07 15:25:56.366623"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:25:56.367803"], ["id", 4388]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 3.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:25:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4388], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.3ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:25:56 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.3ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4388], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 25ms (Views: 12.2ms | ActiveRecord: 4.7ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$yJWK/wyhDiNmncskSOnPweXJszrbqETpgW/UeL0MyCI5SMS9l7V26"], ["created_at", "2018-12-07 15:26:28.978071"], ["updated_at", "2018-12-07 15:26:28.978071"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:26:28 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (20.9ms)
Rendered users/sessions/new.html.erb within layouts/application (304.4ms)

Completed 200 OK in 325ms (Views: 312.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:26:29 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:26:29.393227"], ["last_sign_in_at", "2018-12-07 15:26:29.393227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:26:29.394440"], ["id", 4389]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:26:29 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4389], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:26:29 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.2ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4389], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 25ms (Views: 12.1ms | ActiveRecord: 4.7ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$qVQbgU1Y7s3iuhUPgiac.Omy3p6zSO5Z1VNo1rpm6ZlFVXqBJ9WbK"], ["created_at", "2018-12-07 15:27:14.918408"], ["updated_at", "2018-12-07 15:27:14.918408"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:27:14 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.1ms)
Rendered users/sessions/new.html.erb within layouts/application (321.0ms)

Completed 200 OK in 341ms (Views: 329.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:27:15 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:27:15.310738"], ["last_sign_in_at", "2018-12-07 15:27:15.310738"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:27:15.311802"], ["id", 4390]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:27:15 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4390], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:27:15 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.4ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4390], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 22ms (Views: 10.5ms | ActiveRecord: 4.0ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$B6eVtChohojnx0W44vLyu.ckd6jNRWz5HQJVrEhXsbFZi.35wjFnq"], ["created_at", "2018-12-07 15:27:37.213361"], ["updated_at", "2018-12-07 15:27:37.213361"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:27:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.7ms)
Rendered users/sessions/new.html.erb within layouts/application (308.5ms)

Completed 200 OK in 328ms (Views: 316.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:27:37 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:27:37.601030"], ["last_sign_in_at", "2018-12-07 15:27:37.601030"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:27:37.602257"], ["id", 4391]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:27:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4391], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (5.1ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:27:37 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.0ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4391], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 54ms (Views: 11.7ms | ActiveRecord: 4.6ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$eW6yTzLi34PofW6Ddxc7SuqtcryHNcd6/twOoyatqerBZePkAMB8W"], ["created_at", "2018-12-07 15:33:30.656699"], ["updated_at", "2018-12-07 15:33:30.656699"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:33:30 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.3ms)
Rendered users/sessions/new.html.erb within layouts/application (544.7ms)

Completed 200 OK in 565ms (Views: 553.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:33:31 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:33:31.273446"], ["last_sign_in_at", "2018-12-07 15:33:31.273446"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:33:31.274674"], ["id", 4392]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 22ms (ActiveRecord: 3.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:33:31 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4392], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:33:31 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.7ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4392], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 23ms (Views: 10.9ms | ActiveRecord: 4.5ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$iE21Y/U06V4T2emoC/8wRut.23v7eP/aq1hmikhg4wRErqTqD.Ylu"], ["created_at", "2018-12-07 15:34:00.193645"], ["updated_at", "2018-12-07 15:34:00.193645"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:34:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.1ms)
Rendered users/sessions/new.html.erb within layouts/application (307.1ms)

Completed 200 OK in 327ms (Views: 315.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:34:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:34:00.571392"], ["last_sign_in_at", "2018-12-07 15:34:00.571392"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:34:00.572404"], ["id", 4393]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.6ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:34:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4393], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:34:00 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.6ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4393], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 54ms (Views: 12.0ms | ActiveRecord: 4.1ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (0.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$icXwUksoDQu3yCHVjaouVOcn0a7WCKWeE8tYxM/FFil9BIjWYwgea"], ["created_at", "2018-12-07 15:37:33.793581"], ["updated_at", "2018-12-07 15:37:33.793581"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:37:33 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.4ms)
Rendered users/sessions/new.html.erb within layouts/application (220.2ms)

Completed 200 OK in 240ms (Views: 228.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:37:34 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:37:34.085226"], ["last_sign_in_at", "2018-12-07 15:37:34.085226"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:37:34.086405"], ["id", 4394]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:37:34 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4394], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.2ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:37:34 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.5ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4394], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 25ms (Views: 10.7ms | ActiveRecord: 4.3ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$U9Tk5j1vRFUoxMBhZQh3UOW6jpXa4JGHfh2E0PjgIBQpty4eefFfm"], ["created_at", "2018-12-07 15:38:54.572887"], ["updated_at", "2018-12-07 15:38:54.572887"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:38:54 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.4ms)
Rendered users/sessions/new.html.erb within layouts/application (366.3ms)

Completed 200 OK in 386ms (Views: 374.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:38:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:38:55.011129"], ["last_sign_in_at", "2018-12-07 15:38:55.011129"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:38:55.012310"], ["id", 4395]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:38:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4395], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:38:55 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.9ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4395], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 22ms (Views: 10.4ms | ActiveRecord: 4.4ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$eT9JJgCnGcMvxeyB0pPOku.FtF6RXIPGxezpmg3aN9NZ5FPqNxfSq"], ["created_at", "2018-12-07 15:39:21.560054"], ["updated_at", "2018-12-07 15:39:21.560054"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:39:21 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.1ms)
Rendered users/sessions/new.html.erb within layouts/application (317.0ms)

Completed 200 OK in 337ms (Views: 325.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:39:21 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:39:21.982043"], ["last_sign_in_at", "2018-12-07 15:39:21.982043"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:39:21.983309"], ["id", 4396]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:39:21 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4396], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:39:22 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.2ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4396], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 24ms (Views: 12.0ms | ActiveRecord: 4.3ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.5ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$gKzRkBzdA2H27inFr8dUxuLg3qigMf5wyhmxdmjxCMMdyLzJx9u5G"], ["created_at", "2018-12-07 15:43:40.638379"], ["updated_at", "2018-12-07 15:43:40.638379"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:43:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (22.3ms)
Rendered users/sessions/new.html.erb within layouts/application (361.3ms)

Completed 200 OK in 383ms (Views: 370.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:43:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:43:41.081723"], ["last_sign_in_at", "2018-12-07 15:43:41.081723"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:43:41.083100"], ["id", 4397]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:43:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4397], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (6.2ms)
Rendered layouts/_header-user.html.erb (8.0ms)

Completed 200 OK in 28ms (Views: 24.7ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:43:41 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (15.3ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4397], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (4.1ms)

Completed 200 OK in 48ms (Views: 30.3ms | ActiveRecord: 4.4ms)

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (1.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$UWVl41zwb7XGDhwEvJfln.xRCSVJdpFCzVNlxB083eFRWiW9P0Lia"], ["created_at", "2018-12-07 15:45:07.483239"], ["updated_at", "2018-12-07 15:45:07.483239"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:45:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (19.7ms)
Rendered users/sessions/new.html.erb within layouts/application (321.1ms)

Completed 200 OK in 341ms (Views: 329.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:45:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:45:07.919385"], ["last_sign_in_at", "2018-12-07 15:45:07.919385"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:45:07.920779"], ["id", 4398]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:45:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4398], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.3ms)
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:45:07 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.0ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4398], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 26ms (Views: 12.9ms | ActiveRecord: 4.3ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (1.8ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$4MWfp6MKi1B359LlZB/tqe0wlKBbyNQfMBdl6hPzLjCZA6RMzHh1K"], ["created_at", "2018-12-07 15:46:53.433186"], ["updated_at", "2018-12-07 15:46:53.433186"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:46:53 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (20.4ms)
Rendered users/sessions/new.html.erb within layouts/application (236.7ms)

Completed 200 OK in 259ms (Views: 246.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:46:53 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:46:53.748031"], ["last_sign_in_at", "2018-12-07 15:46:53.748031"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:46:53.749275"], ["id", 4399]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:46:53 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4399], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.3ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.7ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:46:53 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.5ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4399], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 24ms (Views: 12.1ms | ActiveRecord: 4.3ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$YWi.w3akc.O9zHJoEhAqwuBHjL5OJhvSy6aqP.HPvBoyzxh.gnvXi"], ["created_at", "2018-12-07 15:48:18.717595"], ["updated_at", "2018-12-07 15:48:18.717595"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:48:18 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (21.0ms)
Rendered users/sessions/new.html.erb within layouts/application (326.0ms)

Completed 200 OK in 347ms (Views: 334.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:48:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:48:19.157968"], ["last_sign_in_at", "2018-12-07 15:48:19.157968"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:48:19.159247"], ["id", 4400]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:48:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4400], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.3ms)
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:48:19 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.3ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4400], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 26ms (Views: 13.0ms | ActiveRecord: 4.1ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$fpwJ/lzdrXVidZ2n73YpEON6zjieTqokceCDf5IieDaCDnhYMjEQe"], ["created_at", "2018-12-07 15:49:01.172691"], ["updated_at", "2018-12-07 15:49:01.172691"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:49:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (22.9ms)
Rendered users/sessions/new.html.erb within layouts/application (320.3ms)

Completed 200 OK in 349ms (Views: 331.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:49:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:49:01.617069"], ["last_sign_in_at", "2018-12-07 15:49:01.617069"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:49:01.618322"], ["id", 4401]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:49:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4401], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.2ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.7ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:49:01 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.2ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4401], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 26ms (Views: 13.6ms | ActiveRecord: 4.2ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.5ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.5ms)  BEGIN
 (0.3ms)  COMMIT
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$4rkWLTRrgXtxoJaGsfFdgOeVKm4geZM6T03/WB5QBDBThZGyw3rUe"], ["created_at", "2018-12-07 15:50:29.161008"], ["updated_at", "2018-12-07 15:50:29.161008"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:50:29 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (22.0ms)
Rendered users/sessions/new.html.erb within layouts/application (318.2ms)

Completed 200 OK in 340ms (Views: 327.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:50:29 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:50:29.600651"], ["last_sign_in_at", "2018-12-07 15:50:29.600651"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:50:29.602321"], ["id", 4402]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 25ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:50:29 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4402], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.8ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:50:29 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (9.8ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4402], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 26ms (Views: 12.5ms | ActiveRecord: 5.5ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$XMpV8DCK3arNn1LMe0bzY.Zni3noWV1kirsB98TEnDVCP4Pv/tAyG"], ["created_at", "2018-12-07 15:50:48.918208"], ["updated_at", "2018-12-07 15:50:48.918208"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:50:48 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (22.4ms)
Rendered users/sessions/new.html.erb within layouts/application (310.3ms)

Completed 200 OK in 334ms (Views: 319.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:50:49 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:50:49.309124"], ["last_sign_in_at", "2018-12-07 15:50:49.309124"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:50:49.310444"], ["id", 4403]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 22ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:50:49 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4403], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.2ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 12ms (Views: 8.9ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:50:49 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (9.3ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4403], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 25ms (Views: 11.5ms | ActiveRecord: 5.8ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (2.2ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$ufA1rWW2nqtOvSWyuYfTdO4UhgnhfSNFvsQnE32S6Edv1.a5iAjtq"], ["created_at", "2018-12-07 15:52:10.186293"], ["updated_at", "2018-12-07 15:52:10.186293"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:52:10 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (19.4ms)
Rendered users/sessions/new.html.erb within layouts/application (229.8ms)

Completed 200 OK in 251ms (Views: 237.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:52:10 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:52:10.493428"], ["last_sign_in_at", "2018-12-07 15:52:10.493428"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:52:10.494724"], ["id", 4404]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 2.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:52:10 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4404], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:52:10 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.3ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4404], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 25ms (Views: 11.9ms | ActiveRecord: 4.3ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$wyXLzpcrVJ7tycQmelxcW.8zh6ZYbr1my8wvb/2IuriLeR2/wDgnm"], ["created_at", "2018-12-07 15:54:47.049569"], ["updated_at", "2018-12-07 15:54:47.049569"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:54:47 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.1ms)
Rendered users/sessions/new.html.erb within layouts/application (306.6ms)

Completed 200 OK in 327ms (Views: 314.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:54:47 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:54:47.434160"], ["last_sign_in_at", "2018-12-07 15:54:47.434160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:54:47.435214"], ["id", 4405]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:54:47 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4405], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:54:47 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.0ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4405], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 24ms (Views: 12.1ms | ActiveRecord: 3.9ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$H.83F.YUss9WCqoOdVEeoOS6b/auO0kdL4Yx9Nz8M36nAANdbA0V6"], ["created_at", "2018-12-07 15:57:13.620820"], ["updated_at", "2018-12-07 15:57:13.620820"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:57:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (21.5ms)
Rendered users/sessions/new.html.erb within layouts/application (338.6ms)

Completed 200 OK in 361ms (Views: 348.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:57:14 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:57:14.039096"], ["last_sign_in_at", "2018-12-07 15:57:14.039096"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:57:14.040297"], ["id", 4406]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 2.6ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:57:14 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4406], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (5.7ms)
Rendered layouts/_header-user.html.erb (7.7ms)

Completed 200 OK in 27ms (Views: 23.5ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:57:14 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (11.9ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4406], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (4.7ms)

Completed 200 OK in 42ms (Views: 25.2ms | ActiveRecord: 4.3ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$jSQxSBKPQ/dS.Bo2GZ7EZ.c9f5QpSleVSFWnm35WhqKk54UfL/GMC"], ["created_at", "2018-12-07 15:57:39.258090"], ["updated_at", "2018-12-07 15:57:39.258090"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:57:39 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (22.9ms)
Rendered users/sessions/new.html.erb within layouts/application (361.3ms)

Completed 200 OK in 383ms (Views: 371.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:57:39 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:57:39.699956"], ["last_sign_in_at", "2018-12-07 15:57:39.699956"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:57:39.701305"], ["id", 4407]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 22ms (ActiveRecord: 2.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:57:39 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4407], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.2ms)
Rendered layouts/_header-user.html.erb (9.7ms)

Completed 200 OK in 22ms (Views: 19.7ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:57:39 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (17.1ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4407], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (4.9ms)

Completed 200 OK in 56ms (Views: 32.9ms | ActiveRecord: 4.3ms)

 (2.5ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.6ms)  ROLLBACK
 (0.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$Q80EtlhfVSbieBB6lKtY.uHFtxjUg/rNGs8jOXw4W/Y236rstxwrG"], ["created_at", "2018-12-07 15:58:49.815465"], ["updated_at", "2018-12-07 15:58:49.815465"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:58:49 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.7ms)
Rendered users/sessions/new.html.erb within layouts/application (366.5ms)

Completed 200 OK in 387ms (Views: 374.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:58:50 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:58:50.255371"], ["last_sign_in_at", "2018-12-07 15:58:50.255371"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:58:50.256530"], ["id", 4408]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:58:50 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4408], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.9ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:58:50 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.3ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4408], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 22ms (Views: 10.3ms | ActiveRecord: 4.3ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$9/zoILNC9ttDga3LTrFYSu.blAHtyv3gNk//kiFmVoc07uJS0ie12"], ["created_at", "2018-12-07 15:59:26.121906"], ["updated_at", "2018-12-07 15:59:26.121906"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 13:59:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.2ms)
Rendered users/sessions/new.html.erb within layouts/application (303.5ms)

Completed 200 OK in 324ms (Views: 311.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 13:59:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 15:59:26.529920"], ["last_sign_in_at", "2018-12-07 15:59:26.529920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 15:59:26.531136"], ["id", 4409]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-07 13:59:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4409], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.6ms)

Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 13:59:26 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.1ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4409], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 24ms (Views: 12.0ms | ActiveRecord: 4.3ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.6ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$3wi8msXo3.DUwMaQEQZGYeOhhBumcE7GvcTqI0IFHf1ekYBax5QNe"], ["created_at", "2018-12-07 16:00:38.684057"], ["updated_at", "2018-12-07 16:00:38.684057"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:00:38 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.0ms)
Rendered users/sessions/new.html.erb within layouts/application (293.9ms)

Completed 200 OK in 315ms (Views: 303.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:00:39 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:00:39.050982"], ["last_sign_in_at", "2018-12-07 16:00:39.050982"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:00:39.052045"], ["id", 4410]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:00:39 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4410], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.9ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:00:39 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.6ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4410], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 23ms (Views: 11.0ms | ActiveRecord: 4.3ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$o2jD6NdOzrqmx7wgCVydDulwMSxbcvC3Qu1T0HGurYJUxNEd1d7Nm"], ["created_at", "2018-12-07 16:07:09.299637"], ["updated_at", "2018-12-07 16:07:09.299637"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:07:09 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (22.8ms)
Rendered users/sessions/new.html.erb within layouts/application (342.0ms)

Completed 200 OK in 366ms (Views: 353.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:07:09 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:07:09.725729"], ["last_sign_in_at", "2018-12-07 16:07:09.725729"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:07:09.726995"], ["id", 4411]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 22ms (ActiveRecord: 3.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:07:09 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4411], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (7.1ms)
Rendered layouts/_header-user.html.erb (8.7ms)

Completed 200 OK in 29ms (Views: 26.4ms | ActiveRecord: 0.7ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:07:09 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (21.6ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4411], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 53ms (Views: 31.8ms | ActiveRecord: 4.5ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$UtsRD7UqOrnOXq.cwaNw5OodZdd6couz2stk2nNWhYj1AWsDzugGu"], ["created_at", "2018-12-07 16:07:52.490775"], ["updated_at", "2018-12-07 16:07:52.490775"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:07:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (19.0ms)
Rendered users/sessions/new.html.erb within layouts/application (325.0ms)

Completed 200 OK in 346ms (Views: 333.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:07:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:07:52.902860"], ["last_sign_in_at", "2018-12-07 16:07:52.902860"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:07:52.904166"], ["id", 4412]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 3.4ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:07:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4412], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.5ms)

Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.7ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:07:52 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.1ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4412], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.6ms)

Completed 200 OK in 26ms (Views: 13.3ms | ActiveRecord: 4.3ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$U6yw8BgxpM1zM9xP/OCByuywZ178gS3pWQwp/AC1rrQRQ1XMnndxa"], ["created_at", "2018-12-07 16:08:26.098606"], ["updated_at", "2018-12-07 16:08:26.098606"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:08:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.6ms)
Rendered users/sessions/new.html.erb within layouts/application (318.1ms)

Completed 200 OK in 342ms (Views: 329.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:08:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:08:26.494708"], ["last_sign_in_at", "2018-12-07 16:08:26.494708"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:08:26.496069"], ["id", 4413]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:08:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4413], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:08:26 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.8ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4413], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 23ms (Views: 10.5ms | ActiveRecord: 5.3ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (0.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$b2b7/eySzcaTsbtrRUu5Fuy7gMnr0/0bCtZlIBCCL0U36ZLPRGh6O"], ["created_at", "2018-12-07 16:08:45.243458"], ["updated_at", "2018-12-07 16:08:45.243458"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:08:45 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (21.9ms)
Rendered users/sessions/new.html.erb within layouts/application (346.0ms)

Completed 200 OK in 368ms (Views: 354.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:08:45 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:08:45.670455"], ["last_sign_in_at", "2018-12-07 16:08:45.670455"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:08:45.672030"], ["id", 4414]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:08:45 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4414], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (5.7ms)
Rendered layouts/_header-user.html.erb (8.3ms)

Completed 200 OK in 28ms (Views: 26.0ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:08:45 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (20.1ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4414], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (3.5ms)

Completed 200 OK in 51ms (Views: 30.7ms | ActiveRecord: 3.9ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$3rxs83IXBrV1IvXY5SAlRO/Ar3w2jYz9x4Db1zRrvPCbHUYZeCC7K"], ["created_at", "2018-12-07 16:09:40.907266"], ["updated_at", "2018-12-07 16:09:40.907266"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:09:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (20.2ms)
Rendered users/sessions/new.html.erb within layouts/application (305.5ms)

Completed 200 OK in 325ms (Views: 313.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:09:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:09:41.322835"], ["last_sign_in_at", "2018-12-07 16:09:41.322835"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:09:41.324063"], ["id", 4415]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 21ms (ActiveRecord: 3.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:09:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4415], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:09:41 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.3ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4415], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 24ms (Views: 12.1ms | ActiveRecord: 4.5ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$b75gqf0i8XuZTXB6xxMdt.Y3dLjDWZY/YPctdhwnd8U3E38/EYbEy"], ["created_at", "2018-12-07 16:10:38.540780"], ["updated_at", "2018-12-07 16:10:38.540780"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:10:38 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.3ms)
Rendered users/sessions/new.html.erb within layouts/application (305.2ms)

Completed 200 OK in 325ms (Views: 313.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:10:38 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:10:38.923725"], ["last_sign_in_at", "2018-12-07 16:10:38.923725"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:10:38.924757"], ["id", 4416]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:10:38 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4416], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.9ms)
Rendered layouts/_header-user.html.erb (33.0ms)

Completed 200 OK in 41ms (Views: 39.3ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:10:38 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.8ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4416], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 22ms (Views: 11.1ms | ActiveRecord: 4.0ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$fqenq4TUrraDbCFI60DOo.5anihrkzM8IlWJeRTTdC4r3nhY/PTjK"], ["created_at", "2018-12-07 16:10:59.405795"], ["updated_at", "2018-12-07 16:10:59.405795"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:10:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (17.9ms)
Rendered users/sessions/new.html.erb within layouts/application (361.7ms)

Completed 200 OK in 382ms (Views: 369.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:10:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:10:59.841546"], ["last_sign_in_at", "2018-12-07 16:10:59.841546"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:10:59.842713"], ["id", 4417]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:10:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4417], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:10:59 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.5ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4417], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 21ms (Views: 9.9ms | ActiveRecord: 4.4ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.6ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$WDopmNLLmv7pE6/98cVV7uHYtVN.16Uz1OMHQvRTmhkfxdRU4Y7ie"], ["created_at", "2018-12-07 16:12:21.949367"], ["updated_at", "2018-12-07 16:12:21.949367"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:12:21 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (20.9ms)
Rendered users/sessions/new.html.erb within layouts/application (320.0ms)

Completed 200 OK in 342ms (Views: 329.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:12:22 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:12:22.348428"], ["last_sign_in_at", "2018-12-07 16:12:22.348428"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:12:22.349889"], ["id", 4418]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 20ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:12:22 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4418], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (3.4ms)

Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:12:22 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4418], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 24ms (Views: 11.0ms | ActiveRecord: 4.6ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.5ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$lnZNCIE5U7HfwP.JIIdoxO5GVqDygfHYuU9WOheYcmd7l7hWJZIo6"], ["created_at", "2018-12-07 16:14:08.268216"], ["updated_at", "2018-12-07 16:14:08.268216"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:14:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.0ms)
Rendered users/sessions/new.html.erb within layouts/application (293.6ms)

Completed 200 OK in 315ms (Views: 302.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:14:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:14:08.636582"], ["last_sign_in_at", "2018-12-07 16:14:08.636582"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:14:08.637738"], ["id", 4419]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:14:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4419], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:14:08 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.5ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4419], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 23ms (Views: 10.7ms | ActiveRecord: 4.4ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$5oEwScAH5I2nk0SEJaMKuOifddNrgtiii3/x95AhCUZ5TtucxPo8a"], ["created_at", "2018-12-07 16:15:03.298077"], ["updated_at", "2018-12-07 16:15:03.298077"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:15:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (20.4ms)
Rendered users/sessions/new.html.erb within layouts/application (303.6ms)

Completed 200 OK in 324ms (Views: 311.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:15:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:15:03.712095"], ["last_sign_in_at", "2018-12-07 16:15:03.712095"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:15:03.713231"], ["id", 4420]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:15:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4420], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:15:03 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.4ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4420], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 25ms (Views: 12.5ms | ActiveRecord: 4.6ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (1.8ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$y1RRVdRgD6Y1ot8WxW69puzAX8ASvBmpUQ1Wzu1ry4bu0EMMdkW3q"], ["created_at", "2018-12-07 16:16:04.970561"], ["updated_at", "2018-12-07 16:16:04.970561"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:16:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.0ms)
Rendered users/sessions/new.html.erb within layouts/application (305.9ms)

Completed 200 OK in 326ms (Views: 314.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:16:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:16:05.355292"], ["last_sign_in_at", "2018-12-07 16:16:05.355292"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:16:05.356336"], ["id", 4421]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:16:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4421], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.2ms)
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 14ms (Views: 11.4ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:16:05 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.6ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4421], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 54ms (Views: 11.8ms | ActiveRecord: 4.1ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$cKm2T7SZlTq4KSRJEZ17wuy2N3OhWtpeWLjbQef5zEg7OFpP.CxeC"], ["created_at", "2018-12-07 16:16:34.707309"], ["updated_at", "2018-12-07 16:16:34.707309"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:16:34 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.1ms)
Rendered users/sessions/new.html.erb within layouts/application (302.6ms)

Completed 200 OK in 322ms (Views: 310.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:16:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:16:35.083910"], ["last_sign_in_at", "2018-12-07 16:16:35.083910"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:16:35.085007"], ["id", 4422]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 49ms (ActiveRecord: 2.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:16:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4422], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.6ms)

Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:16:35 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.3ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4422], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 23ms (Views: 11.4ms | ActiveRecord: 4.6ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$PMOcdRAXicQdVnPtNrxAle4nNuGuk3Q4VuZ9X145vEOXB9TxiM6gy"], ["created_at", "2018-12-07 16:16:49.370172"], ["updated_at", "2018-12-07 16:16:49.370172"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:16:49 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.3ms)
Rendered users/sessions/new.html.erb within layouts/application (327.9ms)

Completed 200 OK in 348ms (Views: 336.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:16:49 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:16:49.771411"], ["last_sign_in_at", "2018-12-07 16:16:49.771411"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:16:49.772577"], ["id", 4423]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 3.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:16:49 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4423], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:16:49 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (27.4ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4423], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 44ms (Views: 30.8ms | ActiveRecord: 4.4ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$uxseZBllNQleT4GT92i3COesnM.IaG2obl338DXcn7ct3jF6SRXAK"], ["created_at", "2018-12-07 16:19:15.805422"], ["updated_at", "2018-12-07 16:19:15.805422"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:19:15 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.1ms)
Rendered users/sessions/new.html.erb within layouts/application (292.4ms)

Completed 200 OK in 314ms (Views: 301.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:19:16 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:19:16.172252"], ["last_sign_in_at", "2018-12-07 16:19:16.172252"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:19:16.173460"], ["id", 4424]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:19:16 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4424], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 1.0ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:19:16 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4424], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 22ms (Views: 10.9ms | ActiveRecord: 4.4ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$eSdFUqc9F4KQtm5sVP4Tsu1U8wyyoCqL3DbinJbt738iEc/Khfena"], ["created_at", "2018-12-07 16:32:00.467777"], ["updated_at", "2018-12-07 16:32:00.467777"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:32:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.5ms)
Rendered users/sessions/new.html.erb within layouts/application (294.9ms)

Completed 200 OK in 316ms (Views: 303.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:32:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:32:00.835638"], ["last_sign_in_at", "2018-12-07 16:32:00.835638"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:32:00.836819"], ["id", 4425]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:32:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4425], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:32:00 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.6ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4425], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 22ms (Views: 10.6ms | ActiveRecord: 4.2ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$XGrwfxYo4PqrWgc0nCaKOuTQuT6BouR8/iCAmoyHK9IkUxytiQVXK"], ["created_at", "2018-12-07 16:32:36.967049"], ["updated_at", "2018-12-07 16:32:36.967049"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:32:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (20.3ms)
Rendered users/sessions/new.html.erb within layouts/application (304.4ms)

Completed 200 OK in 324ms (Views: 312.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:32:37 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:32:37.381701"], ["last_sign_in_at", "2018-12-07 16:32:37.381701"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:32:37.382866"], ["id", 4426]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:32:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4426], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:32:37 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.1ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4426], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 24ms (Views: 11.9ms | ActiveRecord: 4.2ms)

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.9ms)  ROLLBACK
 (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$0umYTvfOPFmBuaKdgaHS3efnNwzKjbPjZLIvqvHgyYccmaMEUoozC"], ["created_at", "2018-12-07 16:46:14.233951"], ["updated_at", "2018-12-07 16:46:14.233951"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:14 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (17.7ms)
Rendered users/sessions/new.html.erb within layouts/application (364.1ms)

Completed 200 OK in 384ms (Views: 372.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:14 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:14.691495"], ["last_sign_in_at", "2018-12-07 16:46:14.691495"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:14.692547"], ["id", 4427]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 18ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:14 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4427], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.9ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:46:14 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (1.0ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (7.0ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4427], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 22ms (Views: 10.2ms | ActiveRecord: 4.0ms)

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$ciqoDd.gZa1VbH8mFtjY0uXfoukk.3/z2CITKMrdSfycogeCL5fT6"], ["created_at", "2018-12-07 16:46:48.170076"], ["updated_at", "2018-12-07 16:46:48.170076"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (18.5ms)
Rendered users/sessions/new.html.erb within layouts/application (266.4ms)

Completed 200 OK in 294ms (Views: 279.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:48.542858"], ["last_sign_in_at", "2018-12-07 16:46:48.542858"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:48.544024"], ["id", 4428]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 3.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4428], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.8ms)
Rendered layouts/_header-admin.html.erb (2.2ms)

Completed 200 OK in 24ms (Views: 9.4ms | ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4428], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 1.0ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by RoomsController#new as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4428], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (102.6ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 133ms (Views: 107.4ms | ActiveRecord: 5.9ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4428], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4428], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$gyvbITF0hfaDremHFZ3tQOqVeUaT/rs.3oXO0dl9Tzgfk1pRCJuGe"], ["created_at", "2018-12-07 16:46:48.808628"], ["updated_at", "2018-12-07 16:46:48.808628"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:48.835695"], ["last_sign_in_at", "2018-12-07 16:46:48.835695"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:48.836622"], ["id", 4429]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4429], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4429], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.8ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.8ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by RoomsController#new as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4429], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 0.8ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4429], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4429], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.3ms)

Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$bgKy6b7i/G1DgGoR2MJ4Hul8T8BgTqgykkevPEF.g/3JmxOMzbQc."], ["created_at", "2018-12-07 16:46:48.928467"], ["updated_at", "2018-12-07 16:46:48.928467"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:48.955738"], ["last_sign_in_at", "2018-12-07 16:46:48.955738"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:48.956642"], ["id", 4430]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4430], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$xExNp9OULpwAoVtuyehY1eI//ymefmRrKuruvom85BvtPlik.xKbS"], ["created_at", "2018-12-07 16:46:48.989189"], ["updated_at", "2018-12-07 16:46:48.989189"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:48 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 4ms (ActiveRecord: 0.9ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.1ms)

Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$//6Yhth7Fg.OyJn.1Y.gHuqQlFH0PdZ7efs7OFweJ/QqBt12pIZJy"], ["created_at", "2018-12-07 16:46:49.037737"], ["updated_at", "2018-12-07 16:46:49.037737"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (2.9ms)

Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:49.061210"], ["last_sign_in_at", "2018-12-07 16:46:49.061210"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:49.062434"], ["id", 4432]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4432], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.8ms)
Rendered layouts/_header-user.html.erb (3.1ms)

Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (38.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 16:46:49.087064"], ["updated_at", "2018-12-07 16:46:49.087064"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4432], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 44ms (Views: 6.4ms | ActiveRecord: 1.4ms) Started GET “/appointments/3537” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3537"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3537], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (84.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3537')
Rendered appointments/show.html.erb within layouts/application (132.1ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4432], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 195ms (Views: 56.1ms | ActiveRecord: 88.0ms) Started POST “/appointments.3537” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4432], ["LIMIT", 1]]
 (33.6ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3537 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3537], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4432], ["LIMIT", 1]]
SQL (38.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4432], ["room_id", 3537], ["created_at", "2018-12-07 16:46:49.467860"], ["updated_at", "2018-12-07 16:46:49.467860"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 110ms (ActiveRecord: 77.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4432], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$5.MIcrh6LBoKvN2wrCAXnuxy6.3RoJy8ZZrN1mvN6UsC89bPR00U6"], ["created_at", "2018-12-07 16:46:49.542977"], ["updated_at", "2018-12-07 16:46:49.542977"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:49.567814"], ["last_sign_in_at", "2018-12-07 16:46:49.567814"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:49.568830"], ["id", 4433]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4433], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 16:46:49.587949"], ["updated_at", "2018-12-07 16:46:49.587949"], ["tipo_sala", "Auditório"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3538], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4433], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4433], ["room_id", 3538], ["created_at", "2018-12-07 16:46:49.599460"], ["updated_at", "2018-12-07 16:46:49.599460"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4433], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 1.3ms) Started GET “/appointments/3538” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3538"}
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3538], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3538')
Rendered appointments/show.html.erb within layouts/application (7.5ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4433], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 16ms (Views: 12.6ms | ActiveRecord: 2.1ms) Started POST “/appointments.3538” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4433], ["LIMIT", 1]]
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3538 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3538], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4433], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4433], ["room_id", 3538], ["created_at", "2018-12-07 16:46:49.665245"], ["updated_at", "2018-12-07 16:46:49.665245"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4433], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$FQ.EO5Br9rCKnV1LJHkMye0Rq7GFcPEopaG76sxpyzvFSOq1FjSn2"], ["created_at", "2018-12-07 16:46:49.726182"], ["updated_at", "2018-12-07 16:46:49.726182"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:49.752470"], ["last_sign_in_at", "2018-12-07 16:46:49.752470"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:49.753400"], ["id", 4434]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4434], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 16:46:49.773125"], ["updated_at", "2018-12-07 16:46:49.773125"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3539], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4434], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4434], ["room_id", 3539], ["created_at", "2018-12-07 16:46:49.784020"], ["updated_at", "2018-12-07 16:46:49.784020"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4434], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4434]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 58ms (Views: 8.9ms | ActiveRecord: 1.5ms) Started DELETE “/appointments/3139” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3139"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3139], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3139]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4434], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4434]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 1.5ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$EoCgfJjsGu42.S6ZjytWDeb4CBeJqGfdHJwNfYX4EZPBKsulIh1Oy"], ["created_at", "2018-12-07 16:46:49.890825"], ["updated_at", "2018-12-07 16:46:49.890825"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:49.918160"], ["last_sign_in_at", "2018-12-07 16:46:49.918160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:49.919361"], ["id", 4435]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4435], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 16:46:49.937977"], ["updated_at", "2018-12-07 16:46:49.937977"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.7ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3540], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4435], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 4435], ["room_id", 3540], ["created_at", "2018-12-07 16:46:49.949376"], ["updated_at", "2018-12-07 16:46:49.949376"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4435], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4435]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 1.4ms) Started DELETE “/appointments/3140” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3140"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3140], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3140]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 2.0ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 14:46:49 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4435], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4435]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 1.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$6.torMsdr1SsBxfI434ia.jdXix9DGaGTUG8ZEFzpBYGQpGApqg.O"], ["created_at", "2018-12-07 16:46:50.010426"], ["updated_at", "2018-12-07 16:46:50.010426"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:50.039420"], ["last_sign_in_at", "2018-12-07 16:46:50.039420"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:50.040504"], ["id", 4436]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4436], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.2ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-07 16:46:50.059444"], ["updated_at", "2018-12-07 16:46:50.059444"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-07 16:46:50.062886"], ["updated_at", "2018-12-07 16:46:50.062886"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4436], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4436], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 1.4ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4436], ["LIMIT", 1]]
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-admin.html.erb (2.7ms)

Completed 200 OK in 34ms (Views: 9.5ms | ActiveRecord: 1.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$F3NKtOTHfEoTXbjaT831EORrwqhLAHoCVLxv.0/KrdSKd/82FIZxS"], ["created_at", "2018-12-07 16:46:50.148386"], ["updated_at", "2018-12-07 16:46:50.148386"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.3ms)
Rendered users/sessions/new.html.erb within layouts/application (4.3ms)

Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:50.177918"], ["last_sign_in_at", "2018-12-07 16:46:50.177918"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:50.179048"], ["id", 4437]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4437], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.2ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.8ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4437], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 1.5ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4437], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$ZNV4KNjxwD5XAgmAmxiRAOheSD1.3I5Q0A.qzPrggJ8gnTMLKIeL2"], ["created_at", "2018-12-07 16:46:50.270989"], ["updated_at", "2018-12-07 16:46:50.270989"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.1ms)
Rendered users/sessions/new.html.erb within layouts/application (4.0ms)

Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:50.303045"], ["last_sign_in_at", "2018-12-07 16:46:50.303045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:50.304153"], ["id", 4438]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 13ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4438], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.0ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (2.0ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4438], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 19ms (Views: 9.6ms | ActiveRecord: 1.6ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$yVZUGmZ.0pnyzsnH1IVflutn/fiCXSfLerjBgaF6MdwII9QnglRE6"], ["created_at", "2018-12-07 16:46:50.409070"], ["updated_at", "2018-12-07 16:46:50.409070"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.5ms)
Rendered users/sessions/new.html.erb within layouts/application (4.4ms)

Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:50.439015"], ["last_sign_in_at", "2018-12-07 16:46:50.439015"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:50.440028"], ["id", 4439]]
 (0.7ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 12ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4439], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (3.1ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 16:46:50.466166"], ["updated_at", "2018-12-07 16:46:50.466166"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3543], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4439], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4439], ["room_id", 3543], ["created_at", "2018-12-07 16:46:50.477394"], ["updated_at", "2018-12-07 16:46:50.477394"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4439], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 1.4ms) Started GET “/appointments/3543” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3543"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3543], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3543')
Rendered appointments/show.html.erb within layouts/application (8.9ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4439], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 20ms (Views: 15.2ms | ActiveRecord: 2.1ms) Started POST “/appointments.3543” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4439], ["LIMIT", 1]]
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3543 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3543], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4439], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4439], ["room_id", 3543], ["created_at", "2018-12-07 16:46:50.558597"], ["updated_at", "2018-12-07 16:46:50.558597"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4439], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$05anKPj9nFvw5MiLH.s.cO7surDnZ1.iSZj87HDxD2wYActdCBPqK"], ["created_at", "2018-12-07 16:46:50.596013"], ["updated_at", "2018-12-07 16:46:50.596013"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.5ms)
Rendered users/sessions/new.html.erb within layouts/application (5.2ms)

Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:50.627549"], ["last_sign_in_at", "2018-12-07 16:46:50.627549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:50.628890"], ["id", 4440]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4440], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.6ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 16:46:50.650484"], ["updated_at", "2018-12-07 16:46:50.650484"], ["tipo_sala", "Auditório"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3544], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4440], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4440], ["room_id", 3544], ["created_at", "2018-12-07 16:46:50.661640"], ["updated_at", "2018-12-07 16:46:50.661640"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4440], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4440]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 9.1ms | ActiveRecord: 1.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$vSbCr3NyCiq4J2QeVPVJueE6n/nRFZ/tGXDJ8p3UmXvEgFq6J.0m6"], ["created_at", "2018-12-07 16:46:50.707692"], ["updated_at", "2018-12-07 16:46:50.707692"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.8ms)
Rendered users/sessions/new.html.erb within layouts/application (4.8ms)

Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:50.738494"], ["last_sign_in_at", "2018-12-07 16:46:50.738494"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:50.739462"], ["id", 4441]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4441], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 16:46:50.760391"], ["updated_at", "2018-12-07 16:46:50.760391"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3545], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4441], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 4441], ["room_id", 3545], ["created_at", "2018-12-07 16:46:50.771980"], ["updated_at", "2018-12-07 16:46:50.771980"]]
 (0.7ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4441], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4441]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ZmhPOc4xAn8UGLywWK7ae.TIbwNFuObhf26GbWA5qhqBWQpVEgjR2"], ["created_at", "2018-12-07 16:46:50.849383"], ["updated_at", "2018-12-07 16:46:50.849383"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.5ms)
Rendered users/sessions/new.html.erb within layouts/application (3.0ms)

Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:50.873010"], ["last_sign_in_at", "2018-12-07 16:46:50.873010"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:50.874073"], ["id", 4442]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4442], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ZD26GqW4W6XK9qTXOwMhLOoInos0kkeEiW1lHqR5a4ikinq5F40JK"], ["created_at", "2018-12-07 16:46:50.904477"], ["updated_at", "2018-12-07 16:46:50.904477"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:50.929920"], ["last_sign_in_at", "2018-12-07 16:46:50.929920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:50.931009"], ["id", 4443]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4443], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 16:46:50.948481"], ["updated_at", "2018-12-07 16:46:50.948481"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 16:46:50.952258"], ["updated_at", "2018-12-07 16:46:50.952258"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4443], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 1.1ms) Started GET “/appointments/3546” for 127.0.0.1 at 2018-12-07 14:46:50 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3546"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3546], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3546')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4443], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 1.8ms) Started POST “/appointments.3546” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4443], ["LIMIT", 1]]
 (0.6ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3546 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3546], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4443], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4443], ["room_id", 3546], ["created_at", "2018-12-07 16:46:51.015722"], ["updated_at", "2018-12-07 16:46:51.015722"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4443], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.7ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$50kV4QtZ6kswKYGxHdDiwep84Hm0oCJ0Bg/g9Yvh6Tdht3AziBu5q"], ["created_at", "2018-12-07 16:46:51.043756"], ["updated_at", "2018-12-07 16:46:51.043756"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.9ms)

Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:51.068990"], ["last_sign_in_at", "2018-12-07 16:46:51.068990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:51.069932"], ["id", 4444]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4444], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 16:46:51.087671"], ["updated_at", "2018-12-07 16:46:51.087671"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 16:46:51.090730"], ["updated_at", "2018-12-07 16:46:51.090730"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4444], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 1.4ms) Started GET “/appointments/3548” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3548"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3548], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3548')
Rendered appointments/show.html.erb within layouts/application (2.8ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4444], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 1.8ms) Started POST “/appointments.3548” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4444], ["LIMIT", 1]]
 (0.8ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3548 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4444], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$/1sGtT34Ta9TwB2r9cmtaumeIcnx7Y/Fy9yeqP7M/RuJV6k0C8Pk2"], ["created_at", "2018-12-07 16:46:51.174074"], ["updated_at", "2018-12-07 16:46:51.174074"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:51.200079"], ["last_sign_in_at", "2018-12-07 16:46:51.200079"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:51.201071"], ["id", 4445]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4445], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-07 16:46:51.218803"], ["updated_at", "2018-12-07 16:46:51.218803"], ["tipo_sala", "tipoTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4445], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4445], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 1.5ms) Started DELETE “/rooms/3550” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3550"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4445], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3550], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3550]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4445], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$OGtR1mJ2351x2KZsf14gG.lZ4aGBq2omrcgz9WSlAD0Jxj849wnFe"], ["created_at", "2018-12-07 16:46:51.288282"], ["updated_at", "2018-12-07 16:46:51.288282"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-07 16:46:51.292181"], ["updated_at", "2018-12-07 16:46:51.292181"], ["tipo_sala", "tipoTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:51.328195"], ["last_sign_in_at", "2018-12-07 16:46:51.328195"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:51.329246"], ["id", 4446]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4446], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#index as HTML

User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4446], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 1.7ms) Started GET “/rooms/3551/edit” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3551"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4446], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3551], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 1.4ms) Started PATCH “/rooms/3551” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"3551"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4446], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3551], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 14ms (Views: 7.5ms | ActiveRecord: 1.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$ZZyCt7Fu8dih2nLvTL.9leF5WqGSMPMXWSXuiL6r1Al/GOE1kI9.q"], ["created_at", "2018-12-07 16:46:51.435482"], ["updated_at", "2018-12-07 16:46:51.435482"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$vz.jp5QY1VRk3gbPBB/daODsbZsb1hX5YZkpCZjMwAWw40EBlPD52"], ["created_at", "2018-12-07 16:46:51.456559"], ["updated_at", "2018-12-07 16:46:51.456559"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:51.481318"], ["last_sign_in_at", "2018-12-07 16:46:51.481318"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:51.482131"], ["id", 4448]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4448], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.1ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.7ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4448], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 1.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-07 16:46:51.511560"], ["updated_at", "2018-12-07 16:46:51.511560"], ["tipo_sala", "Coodernação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-07 16:46:51.514506"], ["updated_at", "2018-12-07 16:46:51.514506"], ["tipo_sala", "Predio CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-07 16:46:51.516847"], ["updated_at", "2018-12-07 16:46:51.516847"], ["tipo_sala", "Salas de Reunião"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$QAlE3dQktZ0P3QDfHatzAu6Z/DWSc/VRVyWrISuhYmqPbuDGXflEK"], ["created_at", "2018-12-07 16:46:51.552358"], ["updated_at", "2018-12-07 16:46:51.552358"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:51.577397"], ["last_sign_in_at", "2018-12-07 16:46:51.577397"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:51.578302"], ["id", 4449]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4449], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 16:46:51.597216"], ["updated_at", "2018-12-07 16:46:51.597216"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 16:46:51.600440"], ["updated_at", "2018-12-07 16:46:51.600440"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4449], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$7tQygQwHulqqW6LsbQ6G4ubuUGOBwFQ3jFmRA6mhXog3bsghylMXy"], ["created_at", "2018-12-07 16:46:51.641046"], ["updated_at", "2018-12-07 16:46:51.641046"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (13.4ms)

Completed 200 OK in 17ms (Views: 15.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:51.675773"], ["last_sign_in_at", "2018-12-07 16:46:51.675773"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:51.676688"], ["id", 4450]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4450], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.9ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 16:46:51.694735"], ["updated_at", "2018-12-07 16:46:51.694735"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 16:46:51.697995"], ["updated_at", "2018-12-07 16:46:51.697995"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4450], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Nk1cYZ7UMvHwRMb.AxDJ8enDi4zFUjOVGCcqjxQf.Hv93UBG1paou"], ["created_at", "2018-12-07 16:46:51.737124"], ["updated_at", "2018-12-07 16:46:51.737124"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:51.762364"], ["last_sign_in_at", "2018-12-07 16:46:51.762364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:51.763408"], ["id", 4451]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4451], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 16:46:51.781975"], ["updated_at", "2018-12-07 16:46:51.781975"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 16:46:51.785168"], ["updated_at", "2018-12-07 16:46:51.785168"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4451], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4451], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4451], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4451], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4451], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.8ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-08", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4451], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.1ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-08' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 32ms (Views: 5.9ms | ActiveRecord: 2.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ByFy/ynjtmRJfzJMcKcEIuztQCDFPPaVTRse3frJUEc1p0FYQckG6"], ["created_at", "2018-12-07 16:46:51.895252"], ["updated_at", "2018-12-07 16:46:51.895252"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:51.919656"], ["last_sign_in_at", "2018-12-07 16:46:51.919656"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:51.921171"], ["id", 4452]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4452], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 16:46:51.938477"], ["updated_at", "2018-12-07 16:46:51.938477"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 16:46:51.941750"], ["updated_at", "2018-12-07 16:46:51.941750"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4452], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4452], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4452], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4452], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4452], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.9ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4452], ["LIMIT", 1]]

Redirected to www.example.com/search-rooms Completed 302 Found in 3ms (ActiveRecord: 0.9ms) Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 14:46:51 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4452], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$zb4X.knUBzauizonY2Wkgujb8MO2nGIvWz.sNnlKZARE5dfowZuke"], ["created_at", "2018-12-07 16:46:52.024435"], ["updated_at", "2018-12-07 16:46:52.024435"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.2ms)

Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.1ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:52.063615"], ["last_sign_in_at", "2018-12-07 16:46:52.063615"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:52.064527"], ["id", 4453]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4453], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (2.2ms)
Rendered users/registrations/new.html.erb within layouts/application (5.0ms)

Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$ES2rCbMXG3l27OYiI4xJVugQJ4M7eFRAJXNx0Lhgilf3MXaUJlgle"], ["created_at", "2018-12-07 16:46:52.185188"], ["updated_at", "2018-12-07 16:46:52.185188"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:46:52.188266"], ["last_sign_in_at", "2018-12-07 16:46:52.188266"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:46:52.189093"], ["id", 4454]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 19ms (ActiveRecord: 3.2ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4454], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.6ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$leUO5olHocaYrb3iC31neOb6cF3X42Hzxy/j3dd3fivPHPGfB30Dq"], ["created_at", "2018-12-07 16:46:52.221971"], ["updated_at", "2018-12-07 16:46:52.221971"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.9ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:52.259305"], ["last_sign_in_at", "2018-12-07 16:46:52.259305"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:52.260465"], ["id", 4455]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4455], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.9ms) Started GET “/users/4455/edit” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"4455"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4455], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (5.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 29ms (Views: 26.1ms | ActiveRecord: 0.9ms) Started PUT “/users/4455” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"4455"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4455], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4455], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 4455], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-07 16:46:52.344823"], ["id", 4455]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 16ms (ActiveRecord: 2.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4455], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.7ms)

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$0C/DhFYpn/fzZ4XnqwWIAujybBN7yjznDeD632xkYhMMurRRBqJ3y"], ["created_at", "2018-12-07 16:46:52.377887"], ["updated_at", "2018-12-07 16:46:52.377887"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:52.404122"], ["last_sign_in_at", "2018-12-07 16:46:52.404122"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:52.405157"], ["id", 4456]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4456], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 16:46:52.423368"], ["updated_at", "2018-12-07 16:46:52.423368"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4456], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 1.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4456], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 13ms (Views: 8.8ms | ActiveRecord: 2.2ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4456], ["LIMIT", 1]]
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4456], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4456], ["room_id", 1], ["created_at", "2018-12-07 16:46:52.486388"], ["updated_at", "2018-12-07 16:46:52.486388"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 4.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4456], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (2.3ms)

Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$5iCXA7z5bH2s.F9gCg1yzexQOs7agHi4oMCI48faW9TrEp8HerajW"], ["created_at", "2018-12-07 16:46:52.519226"], ["updated_at", "2018-12-07 16:46:52.519226"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (4.2ms)

Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 16:46:52.547476"], ["last_sign_in_at", "2018-12-07 16:46:52.547476"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 16:46:52.548537"], ["id", 4457]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4457], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 16:46:52.567831"], ["updated_at", "2018-12-07 16:46:52.567831"], ["tipo_sala", "Auditório"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4457], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 1.4ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (3.3ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4457], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 12ms (Views: 8.2ms | ActiveRecord: 2.0ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4457], ["LIMIT", 1]]
 (0.6ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4457], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4457], ["room_id", 1], ["created_at", "2018-12-07 16:46:52.638355"], ["updated_at", "2018-12-07 16:46:52.638355"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 4.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4457], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$/uoKqoI0Th9ulhuj9KXeyOl40497W71WosCUl1b7K/VOMl4Mqr5.q"], ["created_at", "2018-12-07 16:46:52.668128"], ["updated_at", "2018-12-07 16:46:52.668128"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (1.3ms)
Rendered password_resets/new.html.erb within layouts/application (4.1ms)

Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.7ms)
Rendered password_resets/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.5ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$Jf3Y3IuIfKREXzKUbVsrOOCwbu1043gYN6ClnhjIubhA0BZi2IZs2"], ["updated_at", "2018-12-07 16:46:52.747140"], ["id", 4458]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$gsdQH.wZSkAfME5Uqd4fO.P266Zpg0nH.7T0LnENNt9dTj1UzRYI."], ["created_at", "2018-12-07 16:46:52.764827"], ["updated_at", "2018-12-07 16:46:52.764827"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.2ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.9ms)
Rendered password_resets/new.html.erb within layouts/application (2.5ms)

Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (1.1ms)
Rendered password_resets/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 14:46:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5Hb0QQsyuN4s5XGgXFx4iez6w74sPkdjBkWpk0tjpfU/OrETfLzaa"], ["created_at", "2018-12-07 16:47:08.964222"], ["updated_at", "2018-12-07 16:47:08.964222"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OnDJR/i6b2MxU70tQvePiuDPHaKWwAxp8phvq4LncoWrZIqzNDYii"], ["created_at", "2018-12-07 16:47:08.976161"], ["updated_at", "2018-12-07 16:47:08.976161"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.5ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:09.010112"], ["updated_at", "2018-12-07 16:47:09.010112"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3563], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4461], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4461], ["room_id", 3563], ["created_at", "2018-12-07 16:47:09.074756"], ["updated_at", "2018-12-07 16:47:09.074756"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"3148"}
Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3148], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3563], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4461], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.3ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.4ms)

UserMailer#status_notification: processed outbound mail in 341.7ms Sent mail to 123@123.com (13.1ms) Date: Fri, 07 Dec 2018 14:47:09 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0aa40d6d4c5_256fbe4f24517c5@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0aa40d6b1b0_256fbe4f245166c";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0aa40d6b1b0_256fbe4f245166c Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c0aa40d6b1b0_256fbe4f245166c Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c0aa40d6b1b0_256fbe4f245166c–

Completed 302 Found in 367ms (ActiveRecord: 2.4ms)

 (0.6ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dYJXYX4Kum9AqJf3x886u./5WZ5Jojc06g.rRqsz5dHXTJkjuAKLm"], ["created_at", "2018-12-07 16:47:09.466982"], ["updated_at", "2018-12-07 16:47:09.466982"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$y.1ETdxPEqsdQGh2VaJ5Pu907zA/xx/HrEZoPHM7zj3HaBYkd2Oim"], ["created_at", "2018-12-07 16:47:09.474960"], ["updated_at", "2018-12-07 16:47:09.474960"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:09.478950"], ["updated_at", "2018-12-07 16:47:09.478950"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3564], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4463], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4463], ["room_id", 3564], ["created_at", "2018-12-07 16:47:09.487133"], ["updated_at", "2018-12-07 16:47:09.487133"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"3149"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3149], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3564], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4463], ["LIMIT", 1]]
SQL (0.8ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 16:47:09.499185"], ["id", 3149]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.3ms Sent mail to 123@123.com (5.7ms) Date: Fri, 07 Dec 2018 14:47:09 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0aa40d7c72d_256fbe4f245195e@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0aa40d7b84f_256fbe4f24518ca";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0aa40d7b84f_256fbe4f24518ca Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c0aa40d7b84f_256fbe4f24518ca Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c0aa40d7b84f_256fbe4f24518ca–

Completed 302 Found in 22ms (ActiveRecord: 3.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$94M2EGZDTZ6VnOuZTl52NeIzS2glZdJ0.vNSNmDKZHxPMf58nRaWS"], ["created_at", "2018-12-07 16:47:09.523080"], ["updated_at", "2018-12-07 16:47:09.523080"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$WDJ1FvtA0i4dEi6cO7/fC.zuBYT3hK7cLeHOenyThyqKXiq4ndMYK"], ["created_at", "2018-12-07 16:47:09.531678"], ["updated_at", "2018-12-07 16:47:09.531678"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:09.535598"], ["updated_at", "2018-12-07 16:47:09.535598"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3565], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4465], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4465], ["room_id", 3565], ["created_at", "2018-12-07 16:47:09.544556"], ["updated_at", "2018-12-07 16:47:09.544556"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3hRHwkHpQHLaC6Lpn3ZOr.Gl665hFqqgI/73jSrQIswfw5QwSPHiS"], ["created_at", "2018-12-07 16:47:09.561388"], ["updated_at", "2018-12-07 16:47:09.561388"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sDyXM4Ld3YucXIvll/COh.yJZtfzvapnbzTGhz86R0TvpG.sXLadS"], ["created_at", "2018-12-07 16:47:09.569429"], ["updated_at", "2018-12-07 16:47:09.569429"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:09.573482"], ["updated_at", "2018-12-07 16:47:09.573482"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3566], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4467], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4467], ["room_id", 3566], ["created_at", "2018-12-07 16:47:09.582126"], ["updated_at", "2018-12-07 16:47:09.582126"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3151], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$N2K9jtJuoomk9geGKOr5p.a5LXUnyemrQaomCurFki2N8OJIj4U7C"], ["created_at", "2018-12-07 16:47:09.596604"], ["updated_at", "2018-12-07 16:47:09.596604"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"4468"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "DCCdhu39ok2ysr6ZeOUnPg"], ["updated_at", "2018-12-07 16:47:09.606346"], ["id", 4468]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 16:47:09.611199"], ["reset_sent_at", "2018-12-07 16:47:09.610345"], ["id", 4468]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.0ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.6ms)

UserMailer#password_reset: processed outbound mail in 30.9ms Sent mail to teste@unb.com.br (6.4ms) Date: Fri, 07 Dec 2018 14:47:09 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c0aa40d9e184_256fbe4f24522f@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0aa40d9d0f1_256fbe4f24521b4";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0aa40d9d0f1_256fbe4f24521b4 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/DCCdhu39ok2ysr6ZeOUnPg/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c0aa40d9d0f1_256fbe4f24521b4 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/DCCdhu39ok2ysr6ZeOUnPg/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c0aa40d9d0f1_256fbe4f24521b4–

Redirected to test.host/login Completed 302 Found in 50ms (ActiveRecord: 3.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$SRlLY0DWsWHeIT/4lmpVuuuVPzcBYh7B2EQ6qstUDt6Q22wz3k7Pe"], ["created_at", "2018-12-07 16:47:09.660511"], ["updated_at", "2018-12-07 16:47:09.660511"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.9ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$uoWhe4fRzI1SyTqJwlq15uNRf8TUQrwfqCIbWNkIeJlLIUhU2oLTW"], ["created_at", "2018-12-07 16:47:09.690712"], ["updated_at", "2018-12-07 16:47:09.690712"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4470"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$ygdHLDUgpdBPoysRvhyVo.KNCOSb6Ju7ux46OOWRUk.PJB2yAonEu"], ["updated_at", "2018-12-07 16:47:09.700409"], ["id", 4470]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 2.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$Z33oPoUzyDwQEgB37kw.3e5cyi4LuVW8nyD7aw4tLMTLk2Rzh83Gu"], ["created_at", "2018-12-07 16:47:09.713202"], ["updated_at", "2018-12-07 16:47:09.713202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"4471"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$UJshhr1H.q36io.lJ7xAx.0btbKnyzqDC2DiIQN6.Rzp6r3umspCS"], ["created_at", "2018-12-07 16:47:09.735118"], ["updated_at", "2018-12-07 16:47:09.735118"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4472"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 20ms (Views: 2.6ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$fnRIoSzZP/SUjAq5iITqoOrOvSXzuwTAetZXQ7mOvf9.Z2XbiB.NG"], ["created_at", "2018-12-07 16:47:09.768697"], ["updated_at", "2018-12-07 16:47:09.768697"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4473"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$3aV6D5FQ8UA7AXoEIquhy.H09M389v2U9GglZb.qOvsM12mLyXBOm"], ["created_at", "2018-12-07 16:47:09.790797"], ["updated_at", "2018-12-07 16:47:09.790797"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4474"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sNWxr0XRBTiDUwnUGdYtUujDTju6r1QajMAKWmjQG4olMA.h1QP4e"], ["created_at", "2018-12-07 16:47:09.833611"], ["updated_at", "2018-12-07 16:47:09.833611"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 4.7ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fCfqYoJI0a4F5/J4iwx/mu/aAUi5pGJtwFWNHZYqj35vaKv/faw0O"], ["created_at", "2018-12-07 16:47:09.849912"], ["updated_at", "2018-12-07 16:47:09.849912"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.8ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AxaXMrOLZo8oKY59ZA5SoOiMl0ljGbqt4vDLi11N1ugxLLfSx.ZyW"], ["created_at", "2018-12-07 16:47:09.868159"], ["updated_at", "2018-12-07 16:47:09.868159"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:09.872912"], ["updated_at", "2018-12-07 16:47:09.872912"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3567], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4477], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4477], ["room_id", 3567], ["created_at", "2018-12-07 16:47:09.881077"], ["updated_at", "2018-12-07 16:47:09.881077"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.2ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$J20EqgTHkiEXGGFyKcm8peItQ94..L.390inZ8cNplrWhvMqJiSoy"], ["created_at", "2018-12-07 16:47:09.898015"], ["updated_at", "2018-12-07 16:47:09.898015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:09.902421"], ["updated_at", "2018-12-07 16:47:09.902421"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3568], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4478], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4478], ["room_id", 3568], ["created_at", "2018-12-07 16:47:09.911006"], ["updated_at", "2018-12-07 16:47:09.911006"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$c9Y5UGyTKvY4vPkILb9aROk82LQMz/pC4sYBTW1oyyV761rX33X6C"], ["created_at", "2018-12-07 16:47:09.971589"], ["updated_at", "2018-12-07 16:47:09.971589"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:09.975872"], ["updated_at", "2018-12-07 16:47:09.975872"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 14:47:09 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:09.988869"], ["last_sign_in_at", "2018-12-07 16:47:09.988869"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:09.989992"], ["id", 4479]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3569"}
 (1.1ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3569 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3569], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4479], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4479], ["room_id", 3569], ["created_at", "2018-12-07 16:47:10.010754"], ["updated_at", "2018-12-07 16:47:10.010754"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.7ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3569], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PCwGrAWndIGJT5gEqckb9ungEVqeQzxGTza.ZBmZF60nWVlwUJURK"], ["created_at", "2018-12-07 16:47:10.026640"], ["updated_at", "2018-12-07 16:47:10.026640"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:10.031015"], ["updated_at", "2018-12-07 16:47:10.031015"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 14:47:10 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:10.036186"], ["last_sign_in_at", "2018-12-07 16:47:10.036186"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:10.037255"], ["id", 4480]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3570"}
 (0.8ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3570 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3570], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4480], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4480], ["room_id", 3570], ["created_at", "2018-12-07 16:47:10.050336"], ["updated_at", "2018-12-07 16:47:10.050336"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qFGE/yt8hilNSMNZHKbn9OUzq8sxlJZ.91f4arRHjFZ66./ReeTuC"], ["created_at", "2018-12-07 16:47:10.063838"], ["updated_at", "2018-12-07 16:47:10.063838"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:10.068290"], ["updated_at", "2018-12-07 16:47:10.068290"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 14:47:10 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:10.073710"], ["last_sign_in_at", "2018-12-07 16:47:10.073710"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:10.074781"], ["id", 4481]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3571", "user_id"=>"4481"}
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3571 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3571], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4481], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4481], ["room_id", 3571], ["created_at", "2018-12-07 16:47:10.087490"], ["updated_at", "2018-12-07 16:47:10.087490"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 14:47:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3571", "user_id"=>"4481"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4481], ["LIMIT", 1]]
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3571 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3571], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4481], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4481], ["room_id", 3571], ["created_at", "2018-12-07 16:47:10.105204"], ["updated_at", "2018-12-07 16:47:10.105204"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 4.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$k4DlfyjdwItd8g5H7h.8/u43RqoDFNk1ezK06d7D4Lgbx.KwSlz2i"], ["created_at", "2018-12-07 16:47:10.117930"], ["updated_at", "2018-12-07 16:47:10.117930"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:10.122324"], ["updated_at", "2018-12-07 16:47:10.122324"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 14:47:10 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:10.128067"], ["last_sign_in_at", "2018-12-07 16:47:10.128067"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:10.129162"], ["id", 4482]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3572", "user_id"=>"4482"}
 (0.8ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3572 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3572], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4482], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4482], ["room_id", 3572], ["created_at", "2018-12-07 16:47:10.142160"], ["updated_at", "2018-12-07 16:47:10.142160"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 14:47:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3572", "user_id"=>"4482"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4482], ["LIMIT", 1]]
 (0.8ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3572 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3572], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4482], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4482], ["room_id", 3572], ["created_at", "2018-12-07 16:47:10.159628"], ["updated_at", "2018-12-07 16:47:10.159628"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 3.9ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3572], ["user_id", 4482], ["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rbhbjRNdK9nONCGBlSunfud494MUtOu9hVAPbFa46BdBqll5YgExa"], ["created_at", "2018-12-07 16:47:10.175021"], ["updated_at", "2018-12-07 16:47:10.175021"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:10.179474"], ["updated_at", "2018-12-07 16:47:10.179474"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 14:47:10 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:10.185127"], ["last_sign_in_at", "2018-12-07 16:47:10.185127"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:10.186295"], ["id", 4483]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3573", "user_id"=>"4483"}
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3573 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3573], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4483], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4483], ["room_id", 3573], ["created_at", "2018-12-07 16:47:10.198759"], ["updated_at", "2018-12-07 16:47:10.198759"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 14:47:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3573", "user_id"=>"4483"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4483], ["LIMIT", 1]]
 (0.8ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3573 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3573], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4483], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4483], ["room_id", 3573], ["created_at", "2018-12-07 16:47:10.215743"], ["updated_at", "2018-12-07 16:47:10.215743"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 4.0ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3573], ["user_id", 4483], ["status", 1], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bOdYedxGLMMGMeZsrVhhROQT26hwGrYC//3gJUZ2LfszqrgmyEdvC"], ["created_at", "2018-12-07 16:47:10.229908"], ["updated_at", "2018-12-07 16:47:10.229908"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:10.234191"], ["updated_at", "2018-12-07 16:47:10.234191"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 14:47:10 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:10.239407"], ["last_sign_in_at", "2018-12-07 16:47:10.239407"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:10.240461"], ["id", 4484]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3574"}
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Appointment Load (0.9ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3574], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$baJ2ElcgT0tPK7TnKndrnewbGmyj00yOhsHGkExJ.ShMnD.S/XLdW"], ["created_at", "2018-12-07 16:47:10.259380"], ["updated_at", "2018-12-07 16:47:10.259380"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:10.263983"], ["updated_at", "2018-12-07 16:47:10.263983"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 14:47:10 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:10.268948"], ["last_sign_in_at", "2018-12-07 16:47:10.268948"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:10.269996"], ["id", 4485]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3575"}
 (0.6ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xR.czm7fd8xkqkW.8uERf.ebzbhRijyqxZQ.bdw7Eai5RQ1n5W126"], ["created_at", "2018-12-07 16:47:10.287465"], ["updated_at", "2018-12-07 16:47:10.287465"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:10.291897"], ["updated_at", "2018-12-07 16:47:10.291897"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3576], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4486], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4486], ["room_id", 3576], ["created_at", "2018-12-07 16:47:10.299823"], ["updated_at", "2018-12-07 16:47:10.299823"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3576” for 127.0.0.1 at 2018-12-07 14:47:10 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:10.304190"], ["last_sign_in_at", "2018-12-07 16:47:10.304190"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:10.305307"], ["id", 4486]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3576"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3576], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3576')
Rendered appointments/show.html.erb within layouts/application (13.5ms)
Rendered layouts/_header-user.html.erb (3.6ms)

Completed 200 OK in 263ms (Views: 258.4ms | ActiveRecord: 1.3ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hKII1fKcqDjWTWR7uIsslO.g7.wRI.TURad6liaU0nXu6UCS4jsyW"], ["created_at", "2018-12-07 16:47:10.583042"], ["updated_at", "2018-12-07 16:47:10.583042"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:10.587933"], ["updated_at", "2018-12-07 16:47:10.587933"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3577], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4487], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4487], ["room_id", 3577], ["created_at", "2018-12-07 16:47:10.596765"], ["updated_at", "2018-12-07 16:47:10.596765"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3163/edit” for 127.0.0.1 at 2018-12-07 14:47:10 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:10.601674"], ["last_sign_in_at", "2018-12-07 16:47:10.601674"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:10.602987"], ["id", 4487]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"3163"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3163], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 13ms (Views: 10.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tD49NKaIdOUjhBcbjw0w9eGuPb4axL/6stjIX9Ilt5ZVi.egs/uVm"], ["created_at", "2018-12-07 16:47:10.632154"], ["updated_at", "2018-12-07 16:47:10.632154"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 14:47:10 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:10.637401"], ["last_sign_in_at", "2018-12-07 16:47:10.637401"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:10.638553"], ["id", 4488]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (5.1ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FiK5ac0dveniDJcXE5fvje2J50hqHhTSfx7rX2L0Aw678BoldSo0K"], ["created_at", "2018-12-07 16:47:10.665508"], ["updated_at", "2018-12-07 16:47:10.665508"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:10.670725"], ["updated_at", "2018-12-07 16:47:10.670725"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3578], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4489], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4489], ["room_id", 3578], ["created_at", "2018-12-07 16:47:10.679690"], ["updated_at", "2018-12-07 16:47:10.679690"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3578], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4489], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4489], ["room_id", 3578], ["created_at", "2018-12-07 16:47:10.688795"], ["updated_at", "2018-12-07 16:47:10.688795"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 14:47:10 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:10.693439"], ["last_sign_in_at", "2018-12-07 16:47:10.693439"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:10.694626"], ["id", 4489]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4489]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.2ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 22ms (Views: 11.3ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eEBlbYPDWCakicFq/Ebmdeo0w7Z9geTTJ/yN96hSavd8x9DV4yGJC"], ["created_at", "2018-12-07 16:47:10.733098"], ["updated_at", "2018-12-07 16:47:10.733098"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:10.743156"], ["updated_at", "2018-12-07 16:47:10.743156"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3579], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4490], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4490], ["room_id", 3579], ["created_at", "2018-12-07 16:47:10.761489"], ["updated_at", "2018-12-07 16:47:10.761489"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3579], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4490], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4490], ["room_id", 3579], ["created_at", "2018-12-07 16:47:10.781556"], ["updated_at", "2018-12-07 16:47:10.781556"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 14:47:10 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:10.790136"], ["last_sign_in_at", "2018-12-07 16:47:10.790136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:10.791405"], ["id", 4490]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4490]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.3ms)
Rendered layouts/_header-user.html.erb (4.4ms)

Completed 200 OK in 20ms (Views: 18.5ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nkHKTeOcLAuWkQYtLIXvTOFs1s6r2ff4mMj0fsQPDP3cwbFY0zH9S"], ["created_at", "2018-12-07 16:47:10.844908"], ["updated_at", "2018-12-07 16:47:10.844908"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:10.853626"], ["updated_at", "2018-12-07 16:47:10.853626"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3580], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4491], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4491], ["room_id", 3580], ["created_at", "2018-12-07 16:47:10.869352"], ["updated_at", "2018-12-07 16:47:10.869352"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/3168” for 127.0.0.1 at 2018-12-07 14:47:10 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:10.876337"], ["last_sign_in_at", "2018-12-07 16:47:10.876337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:10.879587"], ["id", 4491]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3168"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3168], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3168]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 7ms (ActiveRecord: 2.0ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kinkwOjPs8QqtkAhQaS2m.xsJaHBKcgjLZWXpSSHoxGN6.bViSFK2"], ["created_at", "2018-12-07 16:47:10.922409"], ["updated_at", "2018-12-07 16:47:10.922409"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:10.932226"], ["updated_at", "2018-12-07 16:47:10.932226"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eUIjbeOtEK2hmFenOv/Ob.1RpU16Y0.8GlZzPtFzVZOlzrqvO2.hS"], ["created_at", "2018-12-07 16:47:10.946925"], ["updated_at", "2018-12-07 16:47:10.946925"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3581], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4493], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4493], ["room_id", 3581], ["created_at", "2018-12-07 16:47:10.961492"], ["updated_at", "2018-12-07 16:47:10.961492"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3169” for 127.0.0.1 at 2018-12-07 14:47:10 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:10.973360"], ["last_sign_in_at", "2018-12-07 16:47:10.973360"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:10.974620"], ["id", 4492]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3169"}
Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3169], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3581], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4493], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 17ms (ActiveRecord: 2.4ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/.rN60AI1r2ZHh1vBkGVMuc.Qx68rYYYtE1CEpPhbyPoSxN3NSPBq"], ["created_at", "2018-12-07 16:47:11.025671"], ["updated_at", "2018-12-07 16:47:11.025671"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.034629"], ["updated_at", "2018-12-07 16:47:11.034629"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qWvn09evw14bQnsCinC30O6o50k/ezxKoo7ZOKAXaHcawrSqa/yi."], ["created_at", "2018-12-07 16:47:11.048112"], ["updated_at", "2018-12-07 16:47:11.048112"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3582], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4495], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4495], ["room_id", 3582], ["created_at", "2018-12-07 16:47:11.062950"], ["updated_at", "2018-12-07 16:47:11.062950"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3170” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.068186"], ["last_sign_in_at", "2018-12-07 16:47:11.068186"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.069245"], ["id", 4494]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3170"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3170], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3582], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4495], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 8ms (ActiveRecord: 1.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$znorHOtMsS6XboSF./0jYOyYoUlk1e2ca0Iv0aTDjm9r30kTLxYS6"], ["created_at", "2018-12-07 16:47:11.095939"], ["updated_at", "2018-12-07 16:47:11.095939"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.101442"], ["updated_at", "2018-12-07 16:47:11.101442"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0CiD3/UJaTSWWGoqv2CgPe7i6hx9sZS4ivCNttH8OFCQlaEbcajh."], ["created_at", "2018-12-07 16:47:11.109138"], ["updated_at", "2018-12-07 16:47:11.109138"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3583], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4497], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4497], ["room_id", 3583], ["created_at", "2018-12-07 16:47:11.117848"], ["updated_at", "2018-12-07 16:47:11.117848"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3171” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.123287"], ["last_sign_in_at", "2018-12-07 16:47:11.123287"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.124444"], ["id", 4496]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"3171"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3171], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3583], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4497], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 16:47:11.136560"], ["id", 3171]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.3ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 7.1ms Sent mail to 123@123.com (15.0ms) Date: Fri, 07 Dec 2018 14:47:11 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0aa40f24dcf_256fbe4f2452916@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0aa40f23642_256fbe4f24528fa";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0aa40f23642_256fbe4f24528fa Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c0aa40f23642_256fbe4f24528fa Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c0aa40f23642_256fbe4f24528fa–

Completed 302 Found in 34ms (ActiveRecord: 2.7ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zCksqsTk.7t7TV5IJRR5Jehv39PbJ101BbJHq6YZ1N.Qx7U.iSfH6"], ["created_at", "2018-12-07 16:47:11.173591"], ["updated_at", "2018-12-07 16:47:11.173591"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.177747"], ["updated_at", "2018-12-07 16:47:11.177747"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yHjplGjV1GrxwBjyjmyOmeJ0j53VxIMwR8t4Mvnvx8..Lmjdyf.EC"], ["created_at", "2018-12-07 16:47:11.185239"], ["updated_at", "2018-12-07 16:47:11.185239"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3584], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4499], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4499], ["room_id", 3584], ["created_at", "2018-12-07 16:47:11.193183"], ["updated_at", "2018-12-07 16:47:11.193183"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 16:47:11.197634"], ["id", 3172]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3584], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4499], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4499], ["room_id", 3584], ["created_at", "2018-12-07 16:47:11.205524"], ["updated_at", "2018-12-07 16:47:11.205524"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 16:47:11.209741"], ["id", 3173]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.213969"], ["last_sign_in_at", "2018-12-07 16:47:11.213969"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.215113"], ["id", 4498]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4499], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3584], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4499], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3584], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.8ms)
Rendered layouts/_header-admin.html.erb (3.0ms)

Completed 200 OK in 19ms (Views: 14.4ms | ActiveRecord: 2.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GhMLhMeyQR.xGC0y1LOGa.wfaWiHOyIyq6zfKacPBfKyK3uo898C6"], ["created_at", "2018-12-07 16:47:11.248462"], ["updated_at", "2018-12-07 16:47:11.248462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.252438"], ["updated_at", "2018-12-07 16:47:11.252438"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$D26SFby4dp.75C21iPNvLOwx1vv5Yaf44j6I.pKkEcK7XTZkLA2dS"], ["created_at", "2018-12-07 16:47:11.260245"], ["updated_at", "2018-12-07 16:47:11.260245"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3585], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4501], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4501], ["room_id", 3585], ["created_at", "2018-12-07 16:47:11.268743"], ["updated_at", "2018-12-07 16:47:11.268743"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 16:47:11.273456"], ["id", 3174]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3585], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4501], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4501], ["room_id", 3585], ["created_at", "2018-12-07 16:47:11.281180"], ["updated_at", "2018-12-07 16:47:11.281180"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 16:47:11.285063"], ["id", 3175]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.289010"], ["last_sign_in_at", "2018-12-07 16:47:11.289010"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.290040"], ["id", 4500]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4501], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3585], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4501], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3585], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (7.6ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 2.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eREXm/CejTzYgLvDZSwueOdvqz1jimo21IV.3O71oHbshNR4himWm"], ["created_at", "2018-12-07 16:47:11.321751"], ["updated_at", "2018-12-07 16:47:11.321751"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.326375"], ["last_sign_in_at", "2018-12-07 16:47:11.326375"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.327505"], ["id", 4502]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (6.3ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AgJNwuxNklMni7niwtCe4Oxvat2rKsCvjAiHOWjkcGedVlkw7cqFK"], ["created_at", "2018-12-07 16:47:11.357319"], ["updated_at", "2018-12-07 16:47:11.357319"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.361727"], ["last_sign_in_at", "2018-12-07 16:47:11.361727"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.362575"], ["id", 4503]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O73g0jqNdZPRIpXUnnNjF.S9XXE6IruNyglcyRRUg.zk4Id1EADkO"], ["created_at", "2018-12-07 16:47:11.377393"], ["updated_at", "2018-12-07 16:47:11.377393"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.381721"], ["last_sign_in_at", "2018-12-07 16:47:11.381721"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.382805"], ["id", 4504]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (5.4ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$po4aZKNm3a2.Dzmx3hmhEeW6tL8K2gLPc8Ou4zp2DHZm/2E6i.V4a"], ["created_at", "2018-12-07 16:47:11.408996"], ["updated_at", "2018-12-07 16:47:11.408996"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.413168"], ["last_sign_in_at", "2018-12-07 16:47:11.413168"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.414144"], ["id", 4505]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 14:47:11 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Oz65/hg39JJgmXbNzuDbp.VCCN.WUWeBbT37bVCCkdhdz1bTvGMh2"], ["created_at", "2018-12-07 16:47:11.447253"], ["updated_at", "2018-12-07 16:47:11.447253"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.451627"], ["updated_at", "2018-12-07 16:47:11.451627"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3586” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.455574"], ["last_sign_in_at", "2018-12-07 16:47:11.455574"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.456588"], ["id", 4506]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3586"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3586], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gQkrDFBBmPJmTwMq6DNwgeWxBFeLpX7Il9BlKTxysZzSPmMif.p1S"], ["created_at", "2018-12-07 16:47:11.478740"], ["updated_at", "2018-12-07 16:47:11.478740"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.483407"], ["updated_at", "2018-12-07 16:47:11.483407"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3587” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.487467"], ["last_sign_in_at", "2018-12-07 16:47:11.487467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.488479"], ["id", 4507]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3587"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3587], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.506172"], ["updated_at", "2018-12-07 16:47:11.506172"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3588” for 127.0.0.1 at 2018-12-07 14:47:11 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3588"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YCq9LnbXmFRYQQLywMpz.eeGVo7BqKUMjSd9De4kwnWiRtUk33vuu"], ["created_at", "2018-12-07 16:47:11.521764"], ["updated_at", "2018-12-07 16:47:11.521764"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.526046"], ["updated_at", "2018-12-07 16:47:11.526046"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3589” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.529986"], ["last_sign_in_at", "2018-12-07 16:47:11.529986"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.531170"], ["id", 4508]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3589"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 30ms (Views: 8.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.572889"], ["updated_at", "2018-12-07 16:47:11.572889"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3590” for 127.0.0.1 at 2018-12-07 14:47:11 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3590"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J7i10lLbuwDFnxSJtUXqiuHihkuQI6VyXucjJlCRL0SthrSgt04Hm"], ["created_at", "2018-12-07 16:47:11.589544"], ["updated_at", "2018-12-07 16:47:11.589544"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.593916"], ["updated_at", "2018-12-07 16:47:11.593916"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3591/edit” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.598033"], ["last_sign_in_at", "2018-12-07 16:47:11.598033"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.599187"], ["id", 4509]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3591"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3591], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bU7QwIDeyj1OCG6BUF.Q7ugwcAlSmY7.uTe6Vo4KD/qtVBUrdJATa"], ["created_at", "2018-12-07 16:47:11.624285"], ["updated_at", "2018-12-07 16:47:11.624285"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.628610"], ["updated_at", "2018-12-07 16:47:11.628610"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3592/edit” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.632953"], ["last_sign_in_at", "2018-12-07 16:47:11.632953"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.633974"], ["id", 4510]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3592"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3592], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.653881"], ["updated_at", "2018-12-07 16:47:11.653881"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3593” for 127.0.0.1 at 2018-12-07 14:47:11 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3593"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YtBHMcG9.vAhz9v2fODWCuY0BuWcdsOwDb/CqUZOWAeqU7aUAOAHy"], ["created_at", "2018-12-07 16:47:11.669741"], ["updated_at", "2018-12-07 16:47:11.669741"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.675196"], ["last_sign_in_at", "2018-12-07 16:47:11.675196"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.676198"], ["id", 4511]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.682876"], ["updated_at", "2018-12-07 16:47:11.682876"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0YUZrBB/yuvW9wQt/V9n.ue5DZW.AEtuhPDDAJH3u6x.oVx8phtHW"], ["created_at", "2018-12-07 16:47:11.697840"], ["updated_at", "2018-12-07 16:47:11.697840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.703098"], ["last_sign_in_at", "2018-12-07 16:47:11.703098"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.704142"], ["id", 4512]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.711111"], ["updated_at", "2018-12-07 16:47:11.711111"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aBqu0HSPM.mNWHDsXhEvMO27cBsC1b0kiRbO4AzNXhnSLvJq79Sdm"], ["created_at", "2018-12-07 16:47:11.723989"], ["updated_at", "2018-12-07 16:47:11.723989"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.729585"], ["last_sign_in_at", "2018-12-07 16:47:11.729585"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.730669"], ["id", 4513]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LFcwapzr7HIHhcNOjE2i0uAoyLS5xXJ.w6DJon0UkKQcp7nyz9MSW"], ["created_at", "2018-12-07 16:47:11.749739"], ["updated_at", "2018-12-07 16:47:11.749739"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.755193"], ["last_sign_in_at", "2018-12-07 16:47:11.755193"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.756201"], ["id", 4514]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lZREfeyfx5q9xuXDQw62aOC0CJGRLvDAWGBvVOxoOQW7/uoVIUo8y"], ["created_at", "2018-12-07 16:47:11.775125"], ["updated_at", "2018-12-07 16:47:11.775125"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.780352"], ["last_sign_in_at", "2018-12-07 16:47:11.780352"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.781387"], ["id", 4515]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oSoAmVvTTu4WAFReDyvco.f4WzKsk/CewHxnn./dLSeI.EOkK0QU2"], ["created_at", "2018-12-07 16:47:11.796662"], ["updated_at", "2018-12-07 16:47:11.796662"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.800819"], ["updated_at", "2018-12-07 16:47:11.800819"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3596” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.805587"], ["last_sign_in_at", "2018-12-07 16:47:11.805587"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.806705"], ["id", 4516]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3596"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3596], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 16:47:11.814749"], ["id", 3596]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3596 Completed 302 Found in 7ms (ActiveRecord: 1.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$14qDoPq.73Mn80c9k5OQ1.1wF2XGxotiA2hbrQ3HOeO.FAMPuYIoq"], ["created_at", "2018-12-07 16:47:11.829558"], ["updated_at", "2018-12-07 16:47:11.829558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.833910"], ["updated_at", "2018-12-07 16:47:11.833910"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3597” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.838662"], ["last_sign_in_at", "2018-12-07 16:47:11.838662"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.839769"], ["id", 4517]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3597"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3597], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 16:47:11.847779"], ["id", 3597]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3597 Completed 302 Found in 7ms (ActiveRecord: 1.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xxrt5XolSL8RXamZ7Dl2Au7fW2Mdxi8cGnPgD13C9TYDUs0Pk0PxK"], ["created_at", "2018-12-07 16:47:11.861659"], ["updated_at", "2018-12-07 16:47:11.861659"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.866019"], ["updated_at", "2018-12-07 16:47:11.866019"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3598” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.870878"], ["last_sign_in_at", "2018-12-07 16:47:11.870878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.871968"], ["id", 4518]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3598"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3598], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 1.1ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ejlwEL8phCQ38H1n0d2mPOQll/5Rby2xg.GJb1N26fX9RW3rb9rNe"], ["created_at", "2018-12-07 16:47:11.900922"], ["updated_at", "2018-12-07 16:47:11.900922"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.905188"], ["updated_at", "2018-12-07 16:47:11.905188"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3599” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.909992"], ["last_sign_in_at", "2018-12-07 16:47:11.909992"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.911117"], ["id", 4519]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3599"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3599], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.5ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Jau1.LLyU1vQi0maCdnwYejn9nCzTE00xEU//iabtbi579/RaTMwW"], ["created_at", "2018-12-07 16:47:11.939679"], ["updated_at", "2018-12-07 16:47:11.939679"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.945040"], ["last_sign_in_at", "2018-12-07 16:47:11.945040"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.946062"], ["id", 4520]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rdjF6skNq3Or9O7dx/r4mefcpLk/Hxs/sZlaUVEHlchPvnHBKLOju"], ["created_at", "2018-12-07 16:47:11.961698"], ["updated_at", "2018-12-07 16:47:11.961698"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.965915"], ["updated_at", "2018-12-07 16:47:11.965915"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3600” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.969728"], ["last_sign_in_at", "2018-12-07 16:47:11.969728"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:11.970728"], ["id", 4521]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3600"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3600], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3600]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jopp1SliKrrKwGGwcYgIy.jfP1.wo.fhTW0u74Jf450EjG.0yRAIS"], ["created_at", "2018-12-07 16:47:11.991289"], ["updated_at", "2018-12-07 16:47:11.991289"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:11.995597"], ["updated_at", "2018-12-07 16:47:11.995597"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3601” for 127.0.0.1 at 2018-12-07 14:47:11 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:11.999532"], ["last_sign_in_at", "2018-12-07 16:47:11.999532"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:12.000549"], ["id", 4522]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3601"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3601], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3601]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Xt8rtRGeZ8s6OwFD8cW69.pDhC0I9f3r08nqfMat2IqnWTwn1tGSi"], ["created_at", "2018-12-07 16:47:12.019821"], ["updated_at", "2018-12-07 16:47:12.019821"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:12.024436"], ["updated_at", "2018-12-07 16:47:12.024436"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3602” for 127.0.0.1 at 2018-12-07 14:47:12 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:12.028256"], ["last_sign_in_at", "2018-12-07 16:47:12.028256"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:12.029291"], ["id", 4523]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3602"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MJYHlM6bpSV8rvTtp3LiBOAkhPQsvQ.vVGU2E5ICxBnNNe40rUlO6"], ["created_at", "2018-12-07 16:47:12.045052"], ["updated_at", "2018-12-07 16:47:12.045052"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:12.049216"], ["updated_at", "2018-12-07 16:47:12.049216"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3603” for 127.0.0.1 at 2018-12-07 14:47:12 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:12.053616"], ["last_sign_in_at", "2018-12-07 16:47:12.053616"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:12.054714"], ["id", 4524]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3603"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0Gyegp7/wKar0oJ/cvnxbubo7z6V7Q2LScwr5VDRZ6EZf3RcNtt8C"], ["created_at", "2018-12-07 16:47:12.069718"], ["updated_at", "2018-12-07 16:47:12.069718"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 14:47:12 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:12.074010"], ["last_sign_in_at", "2018-12-07 16:47:12.074010"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:12.074998"], ["id", 4525]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zqLZu/keP/R./9jtfCWFvOi.k7nfLlmuzO6hbeyF18qm79JL4MjNG"], ["created_at", "2018-12-07 16:47:12.100684"], ["updated_at", "2018-12-07 16:47:12.100684"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:12.104668"], ["updated_at", "2018-12-07 16:47:12.104668"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:12.108330"], ["updated_at", "2018-12-07 16:47:12.108330"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:12.111710"], ["updated_at", "2018-12-07 16:47:12.111710"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3604], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4526], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4526], ["room_id", 3604], ["created_at", "2018-12-07 16:47:12.120333"], ["updated_at", "2018-12-07 16:47:12.120333"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 14:47:12 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:12.124861"], ["last_sign_in_at", "2018-12-07 16:47:12.124861"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:12.125823"], ["id", 4526]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.8ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 20ms (Views: 7.2ms | ActiveRecord: 1.3ms)

Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9rYSp9WpY3BvFYLSzZJgr.yRgNWjjNplm4Hfp18ZYtCMMyxrrg/My"], ["created_at", "2018-12-07 16:47:12.163888"], ["updated_at", "2018-12-07 16:47:12.163888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:12.168610"], ["updated_at", "2018-12-07 16:47:12.168610"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:12.172589"], ["updated_at", "2018-12-07 16:47:12.172589"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 16:47:12.176044"], ["updated_at", "2018-12-07 16:47:12.176044"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3607], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4527], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4527], ["room_id", 3607], ["created_at", "2018-12-07 16:47:12.184033"], ["updated_at", "2018-12-07 16:47:12.184033"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 14:47:12 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 16:47:12.188597"], ["last_sign_in_at", "2018-12-07 16:47:12.188597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 16:47:12.189671"], ["id", 4527]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (1.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$pQ7tRzCKSfd3m/04GJhVP.RpMvbtxyWOF1/zQSF6Rs0xojH8zJZWW"], ["created_at", "2018-12-07 17:06:38.689466"], ["updated_at", "2018-12-07 17:06:38.689466"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:38 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (95.0ms)
Rendered users/sessions/new.html.erb within layouts/application (635.5ms)

Completed 200 OK in 665ms (Views: 643.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (21.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:39.494998"], ["last_sign_in_at", "2018-12-07 17:06:39.494998"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:39.496185"], ["id", 4528]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 44ms (ActiveRecord: 24.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4528], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.0ms)
Rendered layouts/_header-admin.html.erb (2.3ms)

Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4528], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 1.0ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by RoomsController#new as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4528], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.4ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 38ms (Views: 12.3ms | ActiveRecord: 6.2ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4528], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4528], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.9ms)

 (0.6ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$MRPsKwZVQv9/8oXB.S0eROsBlt6sTQpF5ap51RXPEUjq5HDCnEGHa"], ["created_at", "2018-12-07 17:06:39.680679"], ["updated_at", "2018-12-07 17:06:39.680679"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.8ms)

Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:39.707475"], ["last_sign_in_at", "2018-12-07 17:06:39.707475"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:39.708534"], ["id", 4529]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4529], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4529], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.8ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by RoomsController#new as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4529], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 13ms (Views: 9.6ms | ActiveRecord: 0.8ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4529], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4529], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.2ms)
Rendered layouts/_header-admin.html.erb (3.0ms)

Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (3.1ms)

Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$DmNS6ueRM.ymFQE3RF.Cd.S3gSvfNtW6C9k4Mi1mdVAZ5.8eGjDFe"], ["created_at", "2018-12-07 17:06:39.836209"], ["updated_at", "2018-12-07 17:06:39.836209"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (4.1ms)
Rendered users/sessions/new.html.erb within layouts/application (8.2ms)

Completed 200 OK in 17ms (Views: 14.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:39.885713"], ["last_sign_in_at", "2018-12-07 17:06:39.885713"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:39.886716"], ["id", 4530]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4530], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.8ms)
Rendered layouts/_header-admin.html.erb (2.2ms)

Completed 200 OK in 14ms (Views: 11.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$FkSVGlmUvUPwOpOJc3Y3Xe99IYs/54XlkYXv.pKqyTQLIcVnKAKR."], ["created_at", "2018-12-07 17:06:39.950591"], ["updated_at", "2018-12-07 17:06:39.950591"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.7ms)
Rendered users/sessions/new.html.erb within layouts/application (6.9ms)

Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:39 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 5ms (ActiveRecord: 0.8ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.7ms)
Rendered users/sessions/new.html.erb within layouts/application (5.5ms)

Completed 200 OK in 14ms (Views: 9.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$h33l8NUx1EW3b8wNP/PWIeNy6xbWfVj6ythnG03XSBHQxS.SIZYAG"], ["created_at", "2018-12-07 17:06:40.027975"], ["updated_at", "2018-12-07 17:06:40.027975"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (9.8ms)
Rendered users/sessions/new.html.erb within layouts/application (13.7ms)

Completed 200 OK in 20ms (Views: 18.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:40.070787"], ["last_sign_in_at", "2018-12-07 17:06:40.070787"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:40.071876"], ["id", 4532]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 12ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4532], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.9ms)
Rendered layouts/_header-user.html.erb (3.5ms)

Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 1.0ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 17:06:40.122516"], ["updated_at", "2018-12-07 17:06:40.122516"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4532], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.8ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 1.7ms) Started GET “/appointments/3610” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3610"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3610], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3610')
Rendered appointments/show.html.erb within layouts/application (10.5ms)
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4532], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 60ms (Views: 14.7ms | ActiveRecord: 4.0ms) Started POST “/appointments.3610” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4532], ["LIMIT", 1]]
 (1.1ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3610 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3610], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4532], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4532], ["room_id", 3610], ["created_at", "2018-12-07 17:06:40.269288"], ["updated_at", "2018-12-07 17:06:40.269288"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 39ms (ActiveRecord: 6.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4532], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.7ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$oxA4rZIN9aEp9A2akRwYyeqBG2NJ0iL8viqInRFtdpy1uM2UGpLhS"], ["created_at", "2018-12-07 17:06:40.298352"], ["updated_at", "2018-12-07 17:06:40.298352"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:40.324758"], ["last_sign_in_at", "2018-12-07 17:06:40.324758"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:40.325745"], ["id", 4533]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4533], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.9ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 1.0ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 17:06:40.349906"], ["updated_at", "2018-12-07 17:06:40.349906"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3611], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4533], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4533], ["room_id", 3611], ["created_at", "2018-12-07 17:06:40.361476"], ["updated_at", "2018-12-07 17:06:40.361476"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4533], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 1.4ms) Started GET “/appointments/3611” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3611"}
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3611], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3611')
Rendered appointments/show.html.erb within layouts/application (7.7ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4533], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 17ms (Views: 12.7ms | ActiveRecord: 2.3ms) Started POST “/appointments.3611” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4533], ["LIMIT", 1]]
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3611 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3611], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4533], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4533], ["room_id", 3611], ["created_at", "2018-12-07 17:06:40.428909"], ["updated_at", "2018-12-07 17:06:40.428909"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 4.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4533], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$C6H5mRuxksir9EGS2GBtt.Q2An4Ci6NIfRrSVEZK6RIROH/lbMMmO"], ["created_at", "2018-12-07 17:06:40.459682"], ["updated_at", "2018-12-07 17:06:40.459682"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:40.486286"], ["last_sign_in_at", "2018-12-07 17:06:40.486286"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:40.487306"], ["id", 4534]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4534], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 17:06:40.508076"], ["updated_at", "2018-12-07 17:06:40.508076"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3612], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4534], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4534], ["room_id", 3612], ["created_at", "2018-12-07 17:06:40.519714"], ["updated_at", "2018-12-07 17:06:40.519714"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4534], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4534]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 32ms (Views: 8.1ms | ActiveRecord: 1.4ms) Started DELETE “/appointments/3181” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3181"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3181], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3181]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4534], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4534]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$7BioNkgncRoig0uuVcaAzeJEwELEQQHCwuSNiWmcWTkVlB4RliXyW"], ["created_at", "2018-12-07 17:06:40.599612"], ["updated_at", "2018-12-07 17:06:40.599612"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.3ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:40.626103"], ["last_sign_in_at", "2018-12-07 17:06:40.626103"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:40.627094"], ["id", 4535]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4535], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 17:06:40.644597"], ["updated_at", "2018-12-07 17:06:40.644597"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3613], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4535], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 4535], ["room_id", 3613], ["created_at", "2018-12-07 17:06:40.655513"], ["updated_at", "2018-12-07 17:06:40.655513"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4535], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4535]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 1.3ms) Started DELETE “/appointments/3182” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3182"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3182], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3182]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4535], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4535]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$mMJ/AYuPMhtQT7GagRgueO4npCGj5PMPj1B.ortzn449bw1OLaq.6"], ["created_at", "2018-12-07 17:06:40.709722"], ["updated_at", "2018-12-07 17:06:40.709722"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.9ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:40.737109"], ["last_sign_in_at", "2018-12-07 17:06:40.737109"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:40.738156"], ["id", 4536]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4536], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-07 17:06:40.755773"], ["updated_at", "2018-12-07 17:06:40.755773"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-07 17:06:40.759322"], ["updated_at", "2018-12-07 17:06:40.759322"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.6ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4536], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.7ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4536], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 13ms (Views: 9.6ms | ActiveRecord: 1.3ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4536], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 5.3ms | ActiveRecord: 1.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$4.Z7cwwRNntdkx5DqrCF0OoCjPI.dj4MkWzV0NULeFYvG7FQou8j6"], ["created_at", "2018-12-07 17:06:40.821646"], ["updated_at", "2018-12-07 17:06:40.821646"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.1ms)
Rendered users/sessions/new.html.erb within layouts/application (4.6ms)

Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:40.851894"], ["last_sign_in_at", "2018-12-07 17:06:40.851894"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:40.852949"], ["id", 4537]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4537], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.8ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.7ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4537], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 1.4ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4537], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$XMdb.Uzmrbi5vs207W8U5eGjwfyc6zRhNYn//puPzYk4N3ZVCCGO."], ["created_at", "2018-12-07 17:06:40.915909"], ["updated_at", "2018-12-07 17:06:40.915909"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:40.952116"], ["last_sign_in_at", "2018-12-07 17:06:40.952116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:40.953107"], ["id", 4538]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4538], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.6ms)
Rendered layouts/_header-user.html.erb (2.9ms)

Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.9ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 15:06:40 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.9ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4538], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 1.6ms)

 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$I0mAb/MDcVQOxqJy/zTCK.aaj2GHVhMtEnjnCtmPDyHUQEX3pquuq"], ["created_at", "2018-12-07 17:06:41.033173"], ["updated_at", "2018-12-07 17:06:41.033173"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.1ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:41.058793"], ["last_sign_in_at", "2018-12-07 17:06:41.058793"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:41.059823"], ["id", 4539]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4539], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 17:06:41.080768"], ["updated_at", "2018-12-07 17:06:41.080768"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3616], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4539], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4539], ["room_id", 3616], ["created_at", "2018-12-07 17:06:41.090826"], ["updated_at", "2018-12-07 17:06:41.090826"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4539], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 1.5ms) Started GET “/appointments/3616” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3616"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3616], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3616')
Rendered appointments/show.html.erb within layouts/application (7.4ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4539], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 16ms (Views: 12.4ms | ActiveRecord: 2.1ms) Started POST “/appointments.3616” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4539], ["LIMIT", 1]]
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3616 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3616], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4539], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 4539], ["room_id", 3616], ["created_at", "2018-12-07 17:06:41.158149"], ["updated_at", "2018-12-07 17:06:41.158149"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4539], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$xHmb/6QG8C.WUAh3IvdQIOL0WkwDc3ccKZz34kmm/kW3vdP2CS2uq"], ["created_at", "2018-12-07 17:06:41.188448"], ["updated_at", "2018-12-07 17:06:41.188448"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:41.215553"], ["last_sign_in_at", "2018-12-07 17:06:41.215553"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:41.216572"], ["id", 4540]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4540], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 17:06:41.236223"], ["updated_at", "2018-12-07 17:06:41.236223"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3617], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4540], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 4540], ["room_id", 3617], ["created_at", "2018-12-07 17:06:41.246253"], ["updated_at", "2018-12-07 17:06:41.246253"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4540], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4540]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$glJmq9V/B9GFT/HYpGGGNuU/TMMz4.1gALxUmsfVQArTXSzaJiUCu"], ["created_at", "2018-12-07 17:06:41.283319"], ["updated_at", "2018-12-07 17:06:41.283319"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (12.8ms)

Completed 200 OK in 17ms (Views: 15.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:41.317162"], ["last_sign_in_at", "2018-12-07 17:06:41.317162"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:41.318109"], ["id", 4541]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4541], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 17:06:41.334555"], ["updated_at", "2018-12-07 17:06:41.334555"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3618], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4541], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 4541], ["room_id", 3618], ["created_at", "2018-12-07 17:06:41.344311"], ["updated_at", "2018-12-07 17:06:41.344311"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4541], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4541]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$aW74vgsRZRw1NOUUmhc81uD0TEpYQbanecHAC3IZll6GxmyiS36Vy"], ["created_at", "2018-12-07 17:06:41.383726"], ["updated_at", "2018-12-07 17:06:41.383726"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:41.409216"], ["last_sign_in_at", "2018-12-07 17:06:41.409216"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:41.410368"], ["id", 4542]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4542], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$R22dr91gc7CHQXr7azKrWe2hjqAY8LG1NT2yrJfWjUdHWVfAqSJT6"], ["created_at", "2018-12-07 17:06:41.442549"], ["updated_at", "2018-12-07 17:06:41.442549"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:41.467745"], ["last_sign_in_at", "2018-12-07 17:06:41.467745"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:41.468963"], ["id", 4543]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4543], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.7ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 17:06:41.490358"], ["updated_at", "2018-12-07 17:06:41.490358"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 17:06:41.493853"], ["updated_at", "2018-12-07 17:06:41.493853"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4543], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 1.3ms) Started GET “/appointments/3619” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3619"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3619], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3619')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4543], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 2.2ms) Started POST “/appointments.3619” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4543], ["LIMIT", 1]]
 (0.6ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3619 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3619], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4543], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 4543], ["room_id", 3619], ["created_at", "2018-12-07 17:06:41.561056"], ["updated_at", "2018-12-07 17:06:41.561056"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4543], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.7ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$hfyjVQCaBK.0FYOxMZniCuCWksqY.kdb21xCQJFPQZVreU1KoeTZS"], ["created_at", "2018-12-07 17:06:41.591621"], ["updated_at", "2018-12-07 17:06:41.591621"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.6ms)
Rendered users/sessions/new.html.erb within layouts/application (4.7ms)

Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:41.618733"], ["last_sign_in_at", "2018-12-07 17:06:41.618733"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:41.619743"], ["id", 4544]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4544], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 17:06:41.638941"], ["updated_at", "2018-12-07 17:06:41.638941"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 17:06:41.642509"], ["updated_at", "2018-12-07 17:06:41.642509"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4544], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 1.4ms) Started GET “/appointments/3621” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3621"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3621], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3621')
Rendered appointments/show.html.erb within layouts/application (3.2ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4544], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 13ms (Views: 9.2ms | ActiveRecord: 2.2ms) Started POST “/appointments.3621” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4544], ["LIMIT", 1]]
 (0.6ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3621 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4544], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.6ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms)

 (0.6ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$r2FpoBYzOsAfCS98KmNoOOTqzmGxzmmdp5eEPMnJl6DyAr8/ZEzUC"], ["created_at", "2018-12-07 17:06:41.745401"], ["updated_at", "2018-12-07 17:06:41.745401"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.1ms)
Rendered users/sessions/new.html.erb within layouts/application (4.0ms)

Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:41.774002"], ["last_sign_in_at", "2018-12-07 17:06:41.774002"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:41.775150"], ["id", 4545]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4545], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.2ms)
Rendered layouts/_header-admin.html.erb (2.0ms)

Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-07 17:06:41.794769"], ["updated_at", "2018-12-07 17:06:41.794769"], ["tipo_sala", "tipoTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4545], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.1ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4545], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 1.5ms) Started DELETE “/rooms/3623” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3623"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4545], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3623], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3623]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4545], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.5ms)
Rendered layouts/_header-admin.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$v.UD7NG5teE4xxUc0KFbJ.shNejX.ugzrDWssazzqinszgTYyekUy"], ["created_at", "2018-12-07 17:06:41.879617"], ["updated_at", "2018-12-07 17:06:41.879617"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-07 17:06:41.884682"], ["updated_at", "2018-12-07 17:06:41.884682"], ["tipo_sala", "tipoTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (8.9ms)

Completed 200 OK in 13ms (Views: 12.6ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.8ms)
Rendered users/sessions/new.html.erb within layouts/application (5.4ms)

Completed 200 OK in 13ms (Views: 10.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:41.955705"], ["last_sign_in_at", "2018-12-07 17:06:41.955705"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:41.956890"], ["id", 4546]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 16ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4546], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.0ms)
Rendered layouts/_header-admin.html.erb (3.6ms)

Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 0.8ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:06:41 -0200 Processing by RoomsController#index as HTML

User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4546], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (6.3ms)
Rendered layouts/_header-admin.html.erb (3.3ms)

Completed 200 OK in 19ms (Views: 14.5ms | ActiveRecord: 1.6ms) Started GET “/rooms/3624/edit” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3624"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4546], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3624], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (10.6ms)
Rendered layouts/_header-admin.html.erb (3.4ms)

Completed 200 OK in 26ms (Views: 19.7ms | ActiveRecord: 1.3ms) Started PATCH “/rooms/3624” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"3624"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4546], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3624], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.7ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 21ms (Views: 11.6ms | ActiveRecord: 1.7ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$57yB9BQux0gBZQ4LsMvDz.S5.Uf5NaRUKS/MfAwThG6L7uuS8Io8W"], ["created_at", "2018-12-07 17:06:42.148766"], ["updated_at", "2018-12-07 17:06:42.148766"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$6Q731MpLk2gn7QssDWUKNeul633NqSsopy/pdCb3xtXThUyKeU5fS"], ["created_at", "2018-12-07 17:06:42.192955"], ["updated_at", "2018-12-07 17:06:42.192955"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.7ms)
Rendered users/sessions/new.html.erb within layouts/application (5.2ms)

Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:42.221210"], ["last_sign_in_at", "2018-12-07 17:06:42.221210"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:42.222538"], ["id", 4548]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4548], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4548], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 1.5ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-07 17:06:42.253584"], ["updated_at", "2018-12-07 17:06:42.253584"], ["tipo_sala", "Coodernação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-07 17:06:42.257065"], ["updated_at", "2018-12-07 17:06:42.257065"], ["tipo_sala", "Predio CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-07 17:06:42.259631"], ["updated_at", "2018-12-07 17:06:42.259631"], ["tipo_sala", "Salas de Reunião"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$WNBaq4bqI5wei5yEtniYYuHYRiSuC/jccSwcVzpceiv.0mOsBODM."], ["created_at", "2018-12-07 17:06:42.296697"], ["updated_at", "2018-12-07 17:06:42.296697"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:42.321061"], ["last_sign_in_at", "2018-12-07 17:06:42.321061"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:42.322322"], ["id", 4549]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4549], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 17:06:42.340747"], ["updated_at", "2018-12-07 17:06:42.340747"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 17:06:42.343929"], ["updated_at", "2018-12-07 17:06:42.343929"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4549], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.7ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$RkHkql2TwU.k/a0ExYMhYOjpf.9GgNKo.iDhi50G2MiuLVlScYCyq"], ["created_at", "2018-12-07 17:06:42.381792"], ["updated_at", "2018-12-07 17:06:42.381792"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:42.407706"], ["last_sign_in_at", "2018-12-07 17:06:42.407706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:42.408621"], ["id", 4550]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 2.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4550], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (3.0ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 17:06:42.426997"], ["updated_at", "2018-12-07 17:06:42.426997"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 17:06:42.429902"], ["updated_at", "2018-12-07 17:06:42.429902"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by RoomsController#index as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4550], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$foaiVTbwOu9ElFFtnVZ.X.gx9fXg5Xh830uX27uSBG03ACZ/VUjB6"], ["created_at", "2018-12-07 17:06:42.469640"], ["updated_at", "2018-12-07 17:06:42.469640"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.4ms)
Rendered users/sessions/new.html.erb within layouts/application (4.2ms)

Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:42.496167"], ["last_sign_in_at", "2018-12-07 17:06:42.496167"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:42.497122"], ["id", 4551]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4551], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.8ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 17:06:42.526533"], ["updated_at", "2018-12-07 17:06:42.526533"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 17:06:42.529692"], ["updated_at", "2018-12-07 17:06:42.529692"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4551], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4551], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4551], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.6ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4551], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4551], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 0.8ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-08", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4551], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.1ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-08' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 23ms (Views: 6.4ms | ActiveRecord: 2.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$YY1AmsO3YytMbmEbWTNmSuJ6s7qeULO4jgh51MdZSHY/Wm3B2Xx6W"], ["created_at", "2018-12-07 17:06:42.632241"], ["updated_at", "2018-12-07 17:06:42.632241"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:42.658159"], ["last_sign_in_at", "2018-12-07 17:06:42.658159"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:42.659310"], ["id", 4552]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4552], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 17:06:42.677000"], ["updated_at", "2018-12-07 17:06:42.677000"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 17:06:42.680501"], ["updated_at", "2018-12-07 17:06:42.680501"], ["tipo_sala", "salaTeste"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.5ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.4ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4552], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.3ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4552], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4552], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4552], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4552], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.9ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4552], ["LIMIT", 1]]

Redirected to www.example.com/search-rooms Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4552], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$urUFPk82dau7rdntEBqgfuDvJ6ffJisdXvDB61qCLv5lTkn6LRsj2"], ["created_at", "2018-12-07 17:06:42.764627"], ["updated_at", "2018-12-07 17:06:42.764627"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:42.803589"], ["last_sign_in_at", "2018-12-07 17:06:42.803589"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:42.804566"], ["id", 4553]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4553], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.3ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (2.6ms)
Rendered users/registrations/new.html.erb within layouts/application (5.8ms)

Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$pwZMoK54IsyRQmweJheP3u1PQ5dJqeKEtV0qqeWwtpdRkRsqmIjuS"], ["created_at", "2018-12-07 17:06:42.919567"], ["updated_at", "2018-12-07 17:06:42.919567"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:42.923239"], ["last_sign_in_at", "2018-12-07 17:06:42.923239"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:42.924162"], ["id", 4554]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 16ms (ActiveRecord: 3.2ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4554], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$JhaUvzNuG7X/HlayrgTQMO8xT.bnz1ijZUJlx.Me.Na5WXE/TO8de"], ["created_at", "2018-12-07 17:06:42.955393"], ["updated_at", "2018-12-07 17:06:42.955393"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:42.991400"], ["last_sign_in_at", "2018-12-07 17:06:42.991400"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:42.992613"], ["id", 4555]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.6ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4555], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.7ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 1.1ms) Started GET “/users/4555/edit” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"4555"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4555], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 13ms (Views: 9.6ms | ActiveRecord: 0.9ms) Started PUT “/users/4555” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"4555"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4555], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4555], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 4555], ["LIMIT", 1]]
SQL (0.6ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-07 17:06:43.059966"], ["id", 4555]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 16ms (ActiveRecord: 2.6ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4555], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.9ms)

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$oicoudzDYGGxHr2Ebtirke2VVAsZm.yDic1Jhq3aK6Uli/w0VKvGq"], ["created_at", "2018-12-07 17:06:43.093184"], ["updated_at", "2018-12-07 17:06:43.093184"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:43.118344"], ["last_sign_in_at", "2018-12-07 17:06:43.118344"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:43.119316"], ["id", 4556]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4556], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.8ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 17:06:43.136564"], ["updated_at", "2018-12-07 17:06:43.136564"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4556], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 1.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4556], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 2.1ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4556], ["LIMIT", 1]]
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4556], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4556], ["room_id", 1], ["created_at", "2018-12-07 17:06:43.195863"], ["updated_at", "2018-12-07 17:06:43.195863"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 13ms (ActiveRecord: 4.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4556], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.5ms)
Rendered layouts/_header-admin.html.erb (1.6ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$ZUF6CumTR4Owwv0Anjadi.QhF60fj8ErDo6gtl.855lWhr.u5mX0G"], ["created_at", "2018-12-07 17:06:43.225930"], ["updated_at", "2018-12-07 17:06:43.225930"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 17:06:43.251071"], ["last_sign_in_at", "2018-12-07 17:06:43.251071"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 17:06:43.252171"], ["id", 4557]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4557], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.4ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.9ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 17:06:43.270154"], ["updated_at", "2018-12-07 17:06:43.270154"], ["tipo_sala", "Auditório"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by RoomsController#index as HTML

User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4557], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 1.6ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4557], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 1.9ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4557], ["LIMIT", 1]]
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4557], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4557], ["room_id", 1], ["created_at", "2018-12-07 17:06:43.327871"], ["updated_at", "2018-12-07 17:06:43.327871"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4557], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.4ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$Z83hrO5RN2kdmnMTLR3xC.KStBdbEkQsQURpLCJJaJZZ3Vaz82QoG"], ["created_at", "2018-12-07 17:06:43.352986"], ["updated_at", "2018-12-07 17:06:43.352986"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.9ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.0ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (1.2ms)
Rendered password_resets/new.html.erb within layouts/application (3.7ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.8ms)
Rendered password_resets/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$DVWLg3.OMwTwbygc32m0dOywmEguDTxJcGPcjsou63bWtljoJTzdK"], ["updated_at", "2018-12-07 17:06:43.414698"], ["id", 4558]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$twz2t/RdHSRUvkSDD9DV0Olb.21c9Wet3bhHm3qreu/IP1oqbHX6C"], ["created_at", "2018-12-07 17:06:43.427581"], ["updated_at", "2018-12-07 17:06:43.427581"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.7ms)
Rendered password_resets/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.6ms)
Rendered password_resets/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 15:06:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UVmX21VExu1it.0QlBzMl.jSdkO.XA61JcRseffYdF2LHKxP5k5IO"], ["created_at", "2018-12-07 17:06:58.123061"], ["updated_at", "2018-12-07 17:06:58.123061"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CFTiaXm9LYi8gi/8fnE4L.RGYkL/6mlELOVtQhhtMK0l1iUW5xU4y"], ["created_at", "2018-12-07 17:06:58.135696"], ["updated_at", "2018-12-07 17:06:58.135696"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:58.168146"], ["updated_at", "2018-12-07 17:06:58.168146"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3636], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4561], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4561], ["room_id", 3636], ["created_at", "2018-12-07 17:06:58.235035"], ["updated_at", "2018-12-07 17:06:58.235035"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"3190"}
Appointment Load (0.9ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3190], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3636], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4561], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (1.4ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.5ms)

UserMailer#status_notification: processed outbound mail in 273.8ms Sent mail to 123@123.com (12.6ms) Date: Fri, 07 Dec 2018 15:06:58 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0aa8b283ce3_2de18fef1c476@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0aa8b281bcd_2de18fef1c4673";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0aa8b281bcd_2de18fef1c4673 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c0aa8b281bcd_2de18fef1c4673 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c0aa8b281bcd_2de18fef1c4673–

Completed 302 Found in 299ms (ActiveRecord: 2.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q7viIbqZfIeO0QHXIKS4.edMZx5oSJSouLJg1zVLggC1sbfWep4Lu"], ["created_at", "2018-12-07 17:06:58.559116"], ["updated_at", "2018-12-07 17:06:58.559116"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jwsc.tG3LSxnV0SyP88L3ui.p7EjPH07Qtav8Bt9hY6/R9VKM1vhq"], ["created_at", "2018-12-07 17:06:58.567888"], ["updated_at", "2018-12-07 17:06:58.567888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:58.571878"], ["updated_at", "2018-12-07 17:06:58.571878"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3637], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4563], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4563], ["room_id", 3637], ["created_at", "2018-12-07 17:06:58.580162"], ["updated_at", "2018-12-07 17:06:58.580162"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"3191"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3191], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3637], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4563], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 17:06:58.591261"], ["id", 3191]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms Sent mail to 123@123.com (5.7ms) Date: Fri, 07 Dec 2018 15:06:58 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0aa8b292dc8_2de18fef1c498b@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0aa8b291ed6_2de18fef1c4823";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0aa8b291ed6_2de18fef1c4823 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c0aa8b291ed6_2de18fef1c4823 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c0aa8b291ed6_2de18fef1c4823–

Completed 302 Found in 21ms (ActiveRecord: 2.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Z9014u6ZmzzvkmnibRqoSehcpsVFEYJi0Hi/TFwfkJmyERtdtJZSy"], ["created_at", "2018-12-07 17:06:58.615243"], ["updated_at", "2018-12-07 17:06:58.615243"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jGRIKsOA1ePdNi6XwotgiO1cYcXsYf98Fcp4gWBepSVLRzQHPIxN."], ["created_at", "2018-12-07 17:06:58.623468"], ["updated_at", "2018-12-07 17:06:58.623468"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:58.627641"], ["updated_at", "2018-12-07 17:06:58.627641"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3638], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4565], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4565], ["room_id", 3638], ["created_at", "2018-12-07 17:06:58.635849"], ["updated_at", "2018-12-07 17:06:58.635849"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hwvxcpzvEMleHzaDamWefeM/NITCuC1kY.m7hlcrvYNQPA9NpLbaK"], ["created_at", "2018-12-07 17:06:58.652394"], ["updated_at", "2018-12-07 17:06:58.652394"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZrfxCIGn3am0TKOKTDYe3usbW1asEmGiGLVYKSP5TISA2IIj8T2TS"], ["created_at", "2018-12-07 17:06:58.660549"], ["updated_at", "2018-12-07 17:06:58.660549"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:58.664593"], ["updated_at", "2018-12-07 17:06:58.664593"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3639], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4567], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4567], ["room_id", 3639], ["created_at", "2018-12-07 17:06:58.673014"], ["updated_at", "2018-12-07 17:06:58.673014"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3193], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$0Em/Tz4tMxYlXjhMc20wDuYqMXypV0x9uZy1oIUMfqpyVA.Nr151S"], ["created_at", "2018-12-07 17:06:58.687286"], ["updated_at", "2018-12-07 17:06:58.687286"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"4568"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "CeVP2zlny1bkeA50vdchPQ"], ["updated_at", "2018-12-07 17:06:58.696695"], ["id", 4568]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 17:06:58.700736"], ["reset_sent_at", "2018-12-07 17:06:58.699937"], ["id", 4568]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.6ms)

UserMailer#password_reset: processed outbound mail in 10.7ms Sent mail to teste@unb.com.br (6.3ms) Date: Fri, 07 Dec 2018 15:06:58 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c0aa8b2aefb2_2de18fef1c526b@lucas-HP-G42-Notebook-PC.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0aa8b2ade6f_2de18fef1c515a";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0aa8b2ade6f_2de18fef1c515a Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/CeVP2zlny1bkeA50vdchPQ/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c0aa8b2ade6f_2de18fef1c515a Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/CeVP2zlny1bkeA50vdchPQ/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c0aa8b2ade6f_2de18fef1c515a–

Redirected to test.host/login Completed 302 Found in 29ms (ActiveRecord: 3.1ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$zB4kPD0mXk4KN.6.C6sHJ.5jfhEaHE5pDNMVBvQBgzIA92TnzUWEq"], ["created_at", "2018-12-07 17:06:58.729601"], ["updated_at", "2018-12-07 17:06:58.729601"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.9ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$73TaBTwV8ipZEnFONi/wY.ysdneyQgyGi3MvBIywo5vqbjuHaneVu"], ["created_at", "2018-12-07 17:06:58.751349"], ["updated_at", "2018-12-07 17:06:58.751349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4570"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$sVq8DNwwFFEvWQPAO3TQwubJDeJf4npXern2JH0I6fR0dKmhuOXFC"], ["updated_at", "2018-12-07 17:06:58.762197"], ["id", 4570]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 9ms (ActiveRecord: 1.9ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$pR4xLkdtLST4hTHFTdyEieVkY0CpDIF4QxUCzRZx6tgGcxMnHl2Ta"], ["created_at", "2018-12-07 17:06:58.775954"], ["updated_at", "2018-12-07 17:06:58.775954"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"4571"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$vIJjleAD896K5uxHyFnhzex1f6sEEiuFwSBqe5MD0u.bCBbrobzWi"], ["created_at", "2018-12-07 17:06:58.796231"], ["updated_at", "2018-12-07 17:06:58.796231"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4572"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.4ms)

Completed 200 OK in 20ms (Views: 2.0ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$oHWz5CsbAZHbuuTS6cJnHe9ynu03WTaHfbfUe5pit6rqUTceIgkwG"], ["created_at", "2018-12-07 17:06:58.828521"], ["updated_at", "2018-12-07 17:06:58.828521"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4573"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$JFEphNUNb.sFaQsvs2aPqOHtnp83juE6Geh18URI8.APvnxlMlNJi"], ["created_at", "2018-12-07 17:06:58.849399"], ["updated_at", "2018-12-07 17:06:58.849399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"4574"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XAVkKPcpWXamr/dp98AuOOkq4hpycNCixLuFk7puUSYyOtchnytyO"], ["created_at", "2018-12-07 17:06:58.891528"], ["updated_at", "2018-12-07 17:06:58.891528"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.2ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YEi4BVWYGVBO1b/7cFDBZ.2xLU1ZlgkGPvtJiOcF0RL9hhRLo16f."], ["created_at", "2018-12-07 17:06:58.907751"], ["updated_at", "2018-12-07 17:06:58.907751"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 4.7ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$r/54TfzybwQiypUo58TVOe3cTKmLOXSDpv.Nr0l5Zc69ORRT.T5dK"], ["created_at", "2018-12-07 17:06:58.925720"], ["updated_at", "2018-12-07 17:06:58.925720"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:58.930109"], ["updated_at", "2018-12-07 17:06:58.930109"], ["tipo_sala", "palestras"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3640], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4577], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4577], ["room_id", 3640], ["created_at", "2018-12-07 17:06:58.939022"], ["updated_at", "2018-12-07 17:06:58.939022"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.5ms

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wbU8kTIn6sTnaJ7xVrVnpeEgY5hmV4P0dDBFsG5MJA7sKiEybD9vW"], ["created_at", "2018-12-07 17:06:58.956237"], ["updated_at", "2018-12-07 17:06:58.956237"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:58.960597"], ["updated_at", "2018-12-07 17:06:58.960597"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3641], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4578], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4578], ["room_id", 3641], ["created_at", "2018-12-07 17:06:58.968557"], ["updated_at", "2018-12-07 17:06:58.968557"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 4.4ms

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2QMU4c6IieGetC3Z3xNtMO7DL/xMaiURuwmM7jBi2sqoUQRwcB8YK"], ["created_at", "2018-12-07 17:06:59.030133"], ["updated_at", "2018-12-07 17:06:59.030133"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.035075"], ["updated_at", "2018-12-07 17:06:59.035075"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.048600"], ["last_sign_in_at", "2018-12-07 17:06:59.048600"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.049755"], ["id", 4579]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3642"}
 (1.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3642 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3642], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4579], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4579], ["room_id", 3642], ["created_at", "2018-12-07 17:06:59.069102"], ["updated_at", "2018-12-07 17:06:59.069102"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.7ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3642], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aoQRP/be9dPfoU1xJFQjJuK/tCZtavMc3At7xaOOutzT64RLOWbla"], ["created_at", "2018-12-07 17:06:59.085844"], ["updated_at", "2018-12-07 17:06:59.085844"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.090393"], ["updated_at", "2018-12-07 17:06:59.090393"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.095427"], ["last_sign_in_at", "2018-12-07 17:06:59.095427"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.096502"], ["id", 4580]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3643"}
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3643 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3643], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4580], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4580], ["room_id", 3643], ["created_at", "2018-12-07 17:06:59.109546"], ["updated_at", "2018-12-07 17:06:59.109546"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$O459XKA0WX3G/wZYTJxx9.caet6YJMVgFGZgKXpBJmT0tTIH11T/K"], ["created_at", "2018-12-07 17:06:59.123656"], ["updated_at", "2018-12-07 17:06:59.123656"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.127944"], ["updated_at", "2018-12-07 17:06:59.127944"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.133320"], ["last_sign_in_at", "2018-12-07 17:06:59.133320"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.134437"], ["id", 4581]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3644", "user_id"=>"4581"}
 (0.8ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3644 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3644], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4581], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4581], ["room_id", 3644], ["created_at", "2018-12-07 17:06:59.147560"], ["updated_at", "2018-12-07 17:06:59.147560"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 3.5ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 15:06:59 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3644", "user_id"=>"4581"}
User Load (1.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4581], ["LIMIT", 1]]
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3644 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3644], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4581], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4581], ["room_id", 3644], ["created_at", "2018-12-07 17:06:59.165288"], ["updated_at", "2018-12-07 17:06:59.165288"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 4.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$21VmFAGH4w2NJk/GyL/XluN8dNV53cRCJ3dPsEWdZ5vqg5GRFj9UW"], ["created_at", "2018-12-07 17:06:59.178399"], ["updated_at", "2018-12-07 17:06:59.178399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.182979"], ["updated_at", "2018-12-07 17:06:59.182979"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.188811"], ["last_sign_in_at", "2018-12-07 17:06:59.188811"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.189999"], ["id", 4582]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3645", "user_id"=>"4582"}
 (0.8ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3645 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3645], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4582], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4582], ["room_id", 3645], ["created_at", "2018-12-07 17:06:59.203457"], ["updated_at", "2018-12-07 17:06:59.203457"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.6ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 15:06:59 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3645", "user_id"=>"4582"}
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4582], ["LIMIT", 1]]
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3645 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3645], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4582], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4582], ["room_id", 3645], ["created_at", "2018-12-07 17:06:59.220930"], ["updated_at", "2018-12-07 17:06:59.220930"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 4.1ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3645], ["user_id", 4582], ["status", 2], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MyGY4DiGfLLzRBReK.IZzeB68GaakFgVNgG7c2q43j8KZnbtIgeXm"], ["created_at", "2018-12-07 17:06:59.236371"], ["updated_at", "2018-12-07 17:06:59.236371"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.240775"], ["updated_at", "2018-12-07 17:06:59.240775"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.246686"], ["last_sign_in_at", "2018-12-07 17:06:59.246686"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.247796"], ["id", 4583]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3646", "user_id"=>"4583"}
 (0.8ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3646 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3646], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4583], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4583], ["room_id", 3646], ["created_at", "2018-12-07 17:06:59.260739"], ["updated_at", "2018-12-07 17:06:59.260739"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 3.4ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 15:06:59 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"3646", "user_id"=>"4583"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 4583], ["LIMIT", 1]]
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 3646 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3646], ["LIMIT", 1]]
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4583], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 4583], ["room_id", 3646], ["created_at", "2018-12-07 17:06:59.278050"], ["updated_at", "2018-12-07 17:06:59.278050"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 14ms (ActiveRecord: 4.1ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 3646], ["user_id", 4583], ["status", 1], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aE07qY4JHkYTYczNO6KZ8.l8BHCKHGis12MDWNBfKgL4YiSWvX7Y."], ["created_at", "2018-12-07 17:06:59.293337"], ["updated_at", "2018-12-07 17:06:59.293337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.298016"], ["updated_at", "2018-12-07 17:06:59.298016"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.302958"], ["last_sign_in_at", "2018-12-07 17:06:59.302958"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.304035"], ["id", 4584]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3647"}
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3647], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ou.OEBz5YoBGeDsnYowESuPg3.nM8DvdoTqTKhvXZWY7K.72Er2fe"], ["created_at", "2018-12-07 17:06:59.323480"], ["updated_at", "2018-12-07 17:06:59.323480"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.327898"], ["updated_at", "2018-12-07 17:06:59.327898"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.332578"], ["last_sign_in_at", "2018-12-07 17:06:59.332578"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.333681"], ["id", 4585]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"3648"}
 (0.7ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rwfMU1apE5mUBhk4SF1BHuNOW3rzpONJfQ.IBxp8m3hsxSHRNoAKe"], ["created_at", "2018-12-07 17:06:59.351422"], ["updated_at", "2018-12-07 17:06:59.351422"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.355979"], ["updated_at", "2018-12-07 17:06:59.355979"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3649], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4586], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4586], ["room_id", 3649], ["created_at", "2018-12-07 17:06:59.364020"], ["updated_at", "2018-12-07 17:06:59.364020"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3649” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.368554"], ["last_sign_in_at", "2018-12-07 17:06:59.368554"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.369628"], ["id", 4586]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"3649"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3649], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.9ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '3649')
Rendered appointments/show.html.erb within layouts/application (13.5ms)
Rendered layouts/_header-user.html.erb (3.3ms)

Completed 200 OK in 213ms (Views: 208.4ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/6UDr9VvP5rEEx/96rmt/eE/b1cLkITkbl1SzFGjtF.lmHLG6jc3O"], ["created_at", "2018-12-07 17:06:59.600556"], ["updated_at", "2018-12-07 17:06:59.600556"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.606003"], ["updated_at", "2018-12-07 17:06:59.606003"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3650], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4587], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4587], ["room_id", 3650], ["created_at", "2018-12-07 17:06:59.613488"], ["updated_at", "2018-12-07 17:06:59.613488"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3205/edit” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.618128"], ["last_sign_in_at", "2018-12-07 17:06:59.618128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.619227"], ["id", 4587]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"3205"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3205], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/6W2t7prw03cfqXGjhiQtuUV8kFfRALiiG5R5kZBXG8TOxU7zmB7."], ["created_at", "2018-12-07 17:06:59.645092"], ["updated_at", "2018-12-07 17:06:59.645092"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.649507"], ["last_sign_in_at", "2018-12-07 17:06:59.649507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.650726"], ["id", 4588]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jQdSppRRMHzRRpGm2o4l/e.NW9o3RbpDGsHcb69T3oQVC8Ff8ZTki"], ["created_at", "2018-12-07 17:06:59.676355"], ["updated_at", "2018-12-07 17:06:59.676355"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.681187"], ["updated_at", "2018-12-07 17:06:59.681187"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3651], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4589], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4589], ["room_id", 3651], ["created_at", "2018-12-07 17:06:59.690361"], ["updated_at", "2018-12-07 17:06:59.690361"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3651], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4589], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4589], ["room_id", 3651], ["created_at", "2018-12-07 17:06:59.698700"], ["updated_at", "2018-12-07 17:06:59.698700"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.703082"], ["last_sign_in_at", "2018-12-07 17:06:59.703082"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.704368"], ["id", 4589]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4589]]
Rendered appointments/my_appointments.html.erb within layouts/application (6.3ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 22ms (Views: 11.6ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YIc8AegR0dTYRCQIeJ.Cvutp76iA9ToFZbWZjx38VmY.LFcT0807m"], ["created_at", "2018-12-07 17:06:59.741904"], ["updated_at", "2018-12-07 17:06:59.741904"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.747090"], ["updated_at", "2018-12-07 17:06:59.747090"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3652], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4590], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4590], ["room_id", 3652], ["created_at", "2018-12-07 17:06:59.755608"], ["updated_at", "2018-12-07 17:06:59.755608"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3652], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4590], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4590], ["room_id", 3652], ["created_at", "2018-12-07 17:06:59.765664"], ["updated_at", "2018-12-07 17:06:59.765664"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.770304"], ["last_sign_in_at", "2018-12-07 17:06:59.770304"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.771510"], ["id", 4590]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 4590]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.5ms)

 (0.6ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xv/ArtgWlMOUMbIhRirtAu17mL7kNbw5UpNVvFPnV2n/NysKFB7Nu"], ["created_at", "2018-12-07 17:06:59.798258"], ["updated_at", "2018-12-07 17:06:59.798258"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.803164"], ["updated_at", "2018-12-07 17:06:59.803164"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3653], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4591], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4591], ["room_id", 3653], ["created_at", "2018-12-07 17:06:59.815928"], ["updated_at", "2018-12-07 17:06:59.815928"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/3210” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.821544"], ["last_sign_in_at", "2018-12-07 17:06:59.821544"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.822655"], ["id", 4591]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3210"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3210], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3210]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 5ms (ActiveRecord: 1.8ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$E3rrINsvYMXJJrgXCOQGZOOolznvOz16mhpIpwCyucjDLTDqUFm2O"], ["created_at", "2018-12-07 17:06:59.848968"], ["updated_at", "2018-12-07 17:06:59.848968"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.854322"], ["updated_at", "2018-12-07 17:06:59.854322"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ynb.L6aaHskm.Y4FfPwCuOmqxafZl5rl8kQd2nw1g9LcHqVRAV59O"], ["created_at", "2018-12-07 17:06:59.862373"], ["updated_at", "2018-12-07 17:06:59.862373"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3654], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4593], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4593], ["room_id", 3654], ["created_at", "2018-12-07 17:06:59.872230"], ["updated_at", "2018-12-07 17:06:59.872230"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3211” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.877996"], ["last_sign_in_at", "2018-12-07 17:06:59.877996"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.879154"], ["id", 4592]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3211"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3211], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3654], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4593], ["LIMIT", 1]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 9ms (ActiveRecord: 2.0ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ohq83UEFZrwvApcVYR66LeLs6hpB01aKfyiJZVQANQOcdcF.o8khi"], ["created_at", "2018-12-07 17:06:59.906440"], ["updated_at", "2018-12-07 17:06:59.906440"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.911737"], ["updated_at", "2018-12-07 17:06:59.911737"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$L/AyBi9WXJxZAFw.dpWRN.ojXMMCXNTtWx2LL9bONgG3.gzY6i/bu"], ["created_at", "2018-12-07 17:06:59.920553"], ["updated_at", "2018-12-07 17:06:59.920553"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3655], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4595], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4595], ["room_id", 3655], ["created_at", "2018-12-07 17:06:59.930700"], ["updated_at", "2018-12-07 17:06:59.930700"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3212” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.937017"], ["last_sign_in_at", "2018-12-07 17:06:59.937017"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.938187"], ["id", 4594]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3212"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3212], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3655], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4595], ["LIMIT", 1]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 9ms (ActiveRecord: 2.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fdHm.Rm8dmMbW1s7pkNhseuMGlNPUbYdCcc6DWFGn.esqfu47TDLG"], ["created_at", "2018-12-07 17:06:59.963858"], ["updated_at", "2018-12-07 17:06:59.963858"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:06:59.968874"], ["updated_at", "2018-12-07 17:06:59.968874"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0wt02eNdKFLul/.dVZLWIeIfEMtrVxtmZuET5KUfDSadX2Y3upzRC"], ["created_at", "2018-12-07 17:06:59.976724"], ["updated_at", "2018-12-07 17:06:59.976724"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3656], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4597], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4597], ["room_id", 3656], ["created_at", "2018-12-07 17:06:59.985926"], ["updated_at", "2018-12-07 17:06:59.985926"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3213” for 127.0.0.1 at 2018-12-07 15:06:59 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:06:59.992573"], ["last_sign_in_at", "2018-12-07 17:06:59.992573"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:06:59.993793"], ["id", 4596]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"3213"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3213], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.6ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3656], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4597], ["LIMIT", 1]]
SQL (0.7ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 17:07:00.006555"], ["id", 3213]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 5.0ms Sent mail to 123@123.com (7.5ms) Date: Fri, 07 Dec 2018 15:07:00 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c0aa8b4483d_2de18fef1c59cf@lucas-HP-G42-Notebook-PC.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c0aa8b43590_2de18fef1c58c6";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c0aa8b43590_2de18fef1c58c6 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c0aa8b43590_2de18fef1c58c6 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c0aa8b43590_2de18fef1c58c6–

Completed 302 Found in 25ms (ActiveRecord: 2.8ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e3OV6JvpePaRG94CH1/2Ne6.Wxy.q3.vNHZv1Shr8Wot4Iogcvxu2"], ["created_at", "2018-12-07 17:07:00.035825"], ["updated_at", "2018-12-07 17:07:00.035825"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.040758"], ["updated_at", "2018-12-07 17:07:00.040758"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qOln6IQhv3hWRJSLPiZzIO/GeV8ad4bB3QdDb2xMa8ReXSgJmBzpy"], ["created_at", "2018-12-07 17:07:00.048979"], ["updated_at", "2018-12-07 17:07:00.048979"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3657], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4599], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4599], ["room_id", 3657], ["created_at", "2018-12-07 17:07:00.058730"], ["updated_at", "2018-12-07 17:07:00.058730"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 17:07:00.063509"], ["id", 3214]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3657], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4599], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4599], ["room_id", 3657], ["created_at", "2018-12-07 17:07:00.072308"], ["updated_at", "2018-12-07 17:07:00.072308"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 17:07:00.076644"], ["id", 3215]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.080915"], ["last_sign_in_at", "2018-12-07 17:07:00.080915"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.081982"], ["id", 4598]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4599], ["LIMIT", 1]]
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3657], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4599], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3657], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (9.4ms)
Rendered layouts/_header-admin.html.erb (3.8ms)

Completed 200 OK in 22ms (Views: 16.3ms | ActiveRecord: 2.2ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o75GMuLaK0SM0X5pYQxKeuxKMZNboMioJnUyo8p2Z4.kn9o9Up.sG"], ["created_at", "2018-12-07 17:07:00.122808"], ["updated_at", "2018-12-07 17:07:00.122808"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.128811"], ["updated_at", "2018-12-07 17:07:00.128811"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4SSKYLHxY.K.lqm3kIouSe.2tqXNDSE.hxk4zvK1qCRHR0DpuBKgS"], ["created_at", "2018-12-07 17:07:00.136633"], ["updated_at", "2018-12-07 17:07:00.136633"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3658], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4601], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4601], ["room_id", 3658], ["created_at", "2018-12-07 17:07:00.146485"], ["updated_at", "2018-12-07 17:07:00.146485"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 17:07:00.150819"], ["id", 3216]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3658], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4601], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4601], ["room_id", 3658], ["created_at", "2018-12-07 17:07:00.159505"], ["updated_at", "2018-12-07 17:07:00.159505"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 17:07:00.163388"], ["id", 3217]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.167552"], ["last_sign_in_at", "2018-12-07 17:07:00.167552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.168879"], ["id", 4600]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4601], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3658], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4601], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3658], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (8.4ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 17ms (Views: 13.1ms | ActiveRecord: 1.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wccje7S6jCmZ8.LFfum0KeOqIg6DVV0uN1HpFejl1B28xteEDSRlW"], ["created_at", "2018-12-07 17:07:00.215175"], ["updated_at", "2018-12-07 17:07:00.215175"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.219965"], ["last_sign_in_at", "2018-12-07 17:07:00.219965"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.221103"], ["id", 4602]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (7.3ms)
Rendered layouts/_header-admin.html.erb (1.9ms)

Completed 200 OK in 16ms (Views: 14.0ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o5lhHW9hOCGVyMNlBv9RBuC/oYXvPw88Tr1s4ETkt3aqFvweLusLS"], ["created_at", "2018-12-07 17:07:00.254707"], ["updated_at", "2018-12-07 17:07:00.254707"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.259442"], ["last_sign_in_at", "2018-12-07 17:07:00.259442"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.260486"], ["id", 4603]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.KvF8MZJEyTr9Im.Ey2GFOjPRHMUm/pTTULC1WH6Nl1Am/1ffybli"], ["created_at", "2018-12-07 17:07:00.280279"], ["updated_at", "2018-12-07 17:07:00.280279"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.284977"], ["last_sign_in_at", "2018-12-07 17:07:00.284977"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.285885"], ["id", 4604]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 19ms (Views: 17.0ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$..8A.yKq9zxWbwV/1fgO7eGBkP5ZZ1ZUTuXlvFLwUmZk4smkzU0vK"], ["created_at", "2018-12-07 17:07:00.319369"], ["updated_at", "2018-12-07 17:07:00.319369"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.323962"], ["last_sign_in_at", "2018-12-07 17:07:00.323962"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.325028"], ["id", 4605]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.6ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 15:07:00 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xMzQJlHRp8BQaV2hWDM8HOEJq4eios1LhXZxyMoHp1yg.ib9p/J66"], ["created_at", "2018-12-07 17:07:00.361430"], ["updated_at", "2018-12-07 17:07:00.361430"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.365948"], ["updated_at", "2018-12-07 17:07:00.365948"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3659” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.370123"], ["last_sign_in_at", "2018-12-07 17:07:00.370123"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.371108"], ["id", 4606]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3659"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3659], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MIJafgEDfmq8vzJJQ7xR5O5jcOSlN7s9yXYPcdCKfwjxLoT/ZbT6e"], ["created_at", "2018-12-07 17:07:00.394265"], ["updated_at", "2018-12-07 17:07:00.394265"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.398646"], ["updated_at", "2018-12-07 17:07:00.398646"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3660” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.402422"], ["last_sign_in_at", "2018-12-07 17:07:00.402422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.403383"], ["id", 4607]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"3660"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3660], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.421024"], ["updated_at", "2018-12-07 17:07:00.421024"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3661” for 127.0.0.1 at 2018-12-07 15:07:00 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3661"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ax17jCWWxEmWHsQqAwsd0.esBJEx5Y9SLRQAbTCU7tr0WlfgTPSWW"], ["created_at", "2018-12-07 17:07:00.436949"], ["updated_at", "2018-12-07 17:07:00.436949"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.441596"], ["updated_at", "2018-12-07 17:07:00.441596"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3662” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.445774"], ["last_sign_in_at", "2018-12-07 17:07:00.445774"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.446774"], ["id", 4608]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3662"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.467978"], ["updated_at", "2018-12-07 17:07:00.467978"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/3663” for 127.0.0.1 at 2018-12-07 15:07:00 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"3663"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dTNWWQAfAYyNxgTdPBlTI.KyICgzSOD4bX16OhArCIRGm4nf84gYS"], ["created_at", "2018-12-07 17:07:00.483408"], ["updated_at", "2018-12-07 17:07:00.483408"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.487733"], ["updated_at", "2018-12-07 17:07:00.487733"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3664/edit” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.491656"], ["last_sign_in_at", "2018-12-07 17:07:00.491656"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.492738"], ["id", 4609]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3664"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3664], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.4ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 13ms (Views: 10.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZIdCEfW67.iBn7McmeS3buXYl6Rttc9ssdqv9CXFq/mk5nvsNWXzK"], ["created_at", "2018-12-07 17:07:00.519685"], ["updated_at", "2018-12-07 17:07:00.519685"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.523927"], ["updated_at", "2018-12-07 17:07:00.523927"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3665/edit” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.528198"], ["last_sign_in_at", "2018-12-07 17:07:00.528198"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.529210"], ["id", 4610]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"3665"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3665], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.550639"], ["updated_at", "2018-12-07 17:07:00.550639"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/3666” for 127.0.0.1 at 2018-12-07 15:07:00 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"3666"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CuqAnE8AQJZUCXFxV45CnOchUE3eILZWXHlKi8fH6qmL03kR8Td0y"], ["created_at", "2018-12-07 17:07:00.567064"], ["updated_at", "2018-12-07 17:07:00.567064"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.572568"], ["last_sign_in_at", "2018-12-07 17:07:00.572568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.573453"], ["id", 4611]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.581724"], ["updated_at", "2018-12-07 17:07:00.581724"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ka1rC1w03nWcnkV.PCty6ezVH/pvtIXqjz/ziOCZ3DCNE1wPdVbaO"], ["created_at", "2018-12-07 17:07:00.599518"], ["updated_at", "2018-12-07 17:07:00.599518"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.605445"], ["last_sign_in_at", "2018-12-07 17:07:00.605445"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.606616"], ["id", 4612]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.613894"], ["updated_at", "2018-12-07 17:07:00.613894"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6/3aR8box1NIXGDvhy8Cyuz6BY1DV0NxylkEbHgOmI/Qq7MGH9r6G"], ["created_at", "2018-12-07 17:07:00.628021"], ["updated_at", "2018-12-07 17:07:00.628021"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.633925"], ["last_sign_in_at", "2018-12-07 17:07:00.633925"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.635147"], ["id", 4613]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.4ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.7ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1hC5p6bgna0pB1is4SUjreJjoUg7rj.jwcUnwWSLF8qL6IXImrGna"], ["created_at", "2018-12-07 17:07:00.656431"], ["updated_at", "2018-12-07 17:07:00.656431"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.662400"], ["last_sign_in_at", "2018-12-07 17:07:00.662400"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.663485"], ["id", 4614]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WDuZ4jyqUzt92ilmAuSlHOYmmXH6xs6qq/91RK8LST5.3JNk1/I8y"], ["created_at", "2018-12-07 17:07:00.681741"], ["updated_at", "2018-12-07 17:07:00.681741"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.686497"], ["last_sign_in_at", "2018-12-07 17:07:00.686497"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.687397"], ["id", 4615]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9rBykaWndtixt8Uzfp9.EO2VX4NmpGPPE3iNtdwxw0adeKNQni3qe"], ["created_at", "2018-12-07 17:07:00.702378"], ["updated_at", "2018-12-07 17:07:00.702378"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.706558"], ["updated_at", "2018-12-07 17:07:00.706558"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3669” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.711731"], ["last_sign_in_at", "2018-12-07 17:07:00.711731"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.712721"], ["id", 4616]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3669"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3669], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 17:07:00.721342"], ["id", 3669]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3669 Completed 302 Found in 7ms (ActiveRecord: 1.4ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kHu19H2skOB0zNkKZUR6YeDBWLQXD5DctHWRWbXoKb7zlAJgpWvQ2"], ["created_at", "2018-12-07 17:07:00.736644"], ["updated_at", "2018-12-07 17:07:00.736644"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.741177"], ["updated_at", "2018-12-07 17:07:00.741177"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3670” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.746278"], ["last_sign_in_at", "2018-12-07 17:07:00.746278"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.747251"], ["id", 4617]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3670"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3670], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 17:07:00.755714"], ["id", 3670]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/3670 Completed 302 Found in 7ms (ActiveRecord: 1.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/7eKjXLnRyJHATecaAbRAe.cbzP/VjGn2wzBj1nQBYFvFeDvseE.2"], ["created_at", "2018-12-07 17:07:00.769775"], ["updated_at", "2018-12-07 17:07:00.769775"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.774785"], ["updated_at", "2018-12-07 17:07:00.774785"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3671” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.779661"], ["last_sign_in_at", "2018-12-07 17:07:00.779661"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.780618"], ["id", 4618]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3671"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3671], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-admin.html.erb (2.8ms)

Completed 200 OK in 15ms (Views: 10.4ms | ActiveRecord: 0.8ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DhM5H8EJkdpefX9iPjrIreSrQRJmSL8TnOiuG/2Ut/AYt1zo.DaiK"], ["created_at", "2018-12-07 17:07:00.811447"], ["updated_at", "2018-12-07 17:07:00.811447"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.815521"], ["updated_at", "2018-12-07 17:07:00.815521"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/3672” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.821268"], ["last_sign_in_at", "2018-12-07 17:07:00.821268"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.822435"], ["id", 4619]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"3672"}
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3672], ["LIMIT", 1]]
 (0.5ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-admin.html.erb (1.8ms)

Completed 200 OK in 15ms (Views: 9.9ms | ActiveRecord: 1.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N9E8m3ewv2uOZj5OQYw4IuGpWBOKqrWYpuNnY5r44XIWC4FJfMbw."], ["created_at", "2018-12-07 17:07:00.854197"], ["updated_at", "2018-12-07 17:07:00.854197"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.860534"], ["last_sign_in_at", "2018-12-07 17:07:00.860534"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.861913"], ["id", 4620]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qqpg3c/nr2BD0xlpKH0Sp.HOVOTMAFwOb2Ky2SyZ0pTk9ZZlJWdsO"], ["created_at", "2018-12-07 17:07:00.878143"], ["updated_at", "2018-12-07 17:07:00.878143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.883314"], ["updated_at", "2018-12-07 17:07:00.883314"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3673” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.887582"], ["last_sign_in_at", "2018-12-07 17:07:00.887582"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.888623"], ["id", 4621]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3673"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3673], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3673]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rWZMsOaAekCAQoq7cZcvYuhPfJyyHSs3K8svGzxw74M/N0nMP.FbC"], ["created_at", "2018-12-07 17:07:00.911365"], ["updated_at", "2018-12-07 17:07:00.911365"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.916696"], ["updated_at", "2018-12-07 17:07:00.916696"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3674” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.920877"], ["last_sign_in_at", "2018-12-07 17:07:00.920877"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.922174"], ["id", 4622]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3674"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3674], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 3674]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$880FR8QR6z4Es0ITQBjYR.mW5j8IrsP9awSaxUsMb07keL9H0TKGG"], ["created_at", "2018-12-07 17:07:00.942757"], ["updated_at", "2018-12-07 17:07:00.942757"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.947696"], ["updated_at", "2018-12-07 17:07:00.947696"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3675” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.951978"], ["last_sign_in_at", "2018-12-07 17:07:00.951978"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.953013"], ["id", 4623]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3675"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pkAHjBo4SHG6djd2.uvExO.cT2bQS.AVF4ve9MtWODkfv.2h6Va3O"], ["created_at", "2018-12-07 17:07:00.970251"], ["updated_at", "2018-12-07 17:07:00.970251"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:00.974783"], ["updated_at", "2018-12-07 17:07:00.974783"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/3676” for 127.0.0.1 at 2018-12-07 15:07:00 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:00.979297"], ["last_sign_in_at", "2018-12-07 17:07:00.979297"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:00.980525"], ["id", 4624]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"3676"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KfY0xZFUx8GnbJdGTTbOdupLQ9I6N1rE8pvuakkWDRtGNJKStyUyO"], ["created_at", "2018-12-07 17:07:01.052796"], ["updated_at", "2018-12-07 17:07:01.052796"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 15:07:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:01.057322"], ["last_sign_in_at", "2018-12-07 17:07:01.057322"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:01.058415"], ["id", 4625]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rKSb5DDjwUJO/PKQIw32FOZmu3GIsuaJfaf/NcgXx3yelT/ndqGUG"], ["created_at", "2018-12-07 17:07:01.085311"], ["updated_at", "2018-12-07 17:07:01.085311"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:01.089338"], ["updated_at", "2018-12-07 17:07:01.089338"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:01.093668"], ["updated_at", "2018-12-07 17:07:01.093668"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:01.097508"], ["updated_at", "2018-12-07 17:07:01.097508"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3677], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4626], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4626], ["room_id", 3677], ["created_at", "2018-12-07 17:07:01.106359"], ["updated_at", "2018-12-07 17:07:01.106359"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 15:07:01 -0200

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:01.111606"], ["last_sign_in_at", "2018-12-07 17:07:01.111606"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:01.112684"], ["id", 4626]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Room Load (1.1ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 23ms (Views: 8.4ms | ActiveRecord: 1.8ms)

Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DpNHoS21z6TdjI14LphusuhPteU8RlLkGoieMfo9jXNlIoErXUCL."], ["created_at", "2018-12-07 17:07:01.154817"], ["updated_at", "2018-12-07 17:07:01.154817"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:01.159585"], ["updated_at", "2018-12-07 17:07:01.159585"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:01.163556"], ["updated_at", "2018-12-07 17:07:01.163556"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 17:07:01.166920"], ["updated_at", "2018-12-07 17:07:01.166920"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3680], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 4627], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 4627], ["room_id", 3680], ["created_at", "2018-12-07 17:07:01.174525"], ["updated_at", "2018-12-07 17:07:01.174525"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 15:07:01 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 17:07:01.179204"], ["last_sign_in_at", "2018-12-07 17:07:01.179204"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 17:07:01.180191"], ["id", 4627]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK